mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
This commit is contained in:
@@ -124,7 +124,7 @@ export class GithubExecutor extends BaseExecutor {
|
|||||||
if (result.response.status === HTTP_STATUS.BAD_REQUEST) {
|
if (result.response.status === HTTP_STATUS.BAD_REQUEST) {
|
||||||
const errorBody = await result.response.clone().text();
|
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...`);
|
log?.warn("GITHUB", `Model ${model} requires /responses. Switching...`);
|
||||||
this.knownCodexModels.add(model);
|
this.knownCodexModels.add(model);
|
||||||
return this.executeWithResponsesEndpoint(options);
|
return this.executeWithResponsesEndpoint(options);
|
||||||
|
|||||||
Reference in New Issue
Block a user