diff --git a/open-sse/executors/github.js b/open-sse/executors/github.js index 8eb299bc..a670fe4e 100644 --- a/open-sse/executors/github.js +++ b/open-sse/executors/github.js @@ -124,7 +124,7 @@ export class GithubExecutor extends BaseExecutor { if (result.response.status === HTTP_STATUS.BAD_REQUEST) { const errorBody = await result.response.clone().text(); - if (errorBody.includes("not accessible via the /chat/completions endpoint")) { + if (errorBody.includes("not accessible via the /chat/completions endpoint") || errorBody.includes("The requested model is not supported")) { log?.warn("GITHUB", `Model ${model} requires /responses. Switching...`); this.knownCodexModels.add(model); return this.executeWithResponsesEndpoint(options);