Use responses API for Azure (#1428)

This commit is contained in:
Simon Westlin Green
2025-07-31 05:22:59 +02:00
committed by GitHub
parent 3268c61813
commit b09ebf4645
2 changed files with 11 additions and 1 deletions

View File

@@ -126,6 +126,15 @@ export namespace Provider {
options: {},
}
},
azure: async () => {
return {
autoload: false,
async getModel(sdk: any, modelID: string) {
return sdk.responses(modelID)
},
options: {},
}
},
"amazon-bedrock": async () => {
if (!process.env["AWS_PROFILE"] && !process.env["AWS_ACCESS_KEY_ID"] && !process.env["AWS_BEARER_TOKEN_BEDROCK"])
return { autoload: false }

View File

@@ -74,7 +74,8 @@ export namespace ToolRegistry {
modelID.toLowerCase().includes("qwen") ||
modelID.includes("gpt-") ||
modelID.includes("o1") ||
modelID.includes("o3")
modelID.includes("o3") ||
modelID.includes("codex")
) {
return {
patch: false,