pull/9341/head
Aiden Cline 2026-01-20 14:59:01 -06:00
parent 84c4fe971a
commit ff77016c8b
1 changed files with 5 additions and 1 deletions

View File

@ -140,7 +140,9 @@ export namespace Provider {
options: {},
}
},
// TODO: handle the openai and anthropic deployments
azure: async () => {
const resourceName = Env.get("AZURE_RESOURCE_NAME")
return {
autoload: false,
async getModel(sdk: any, model: Model, options?: Record<string, any>) {
@ -152,7 +154,9 @@ export namespace Provider {
}
return sdk.responses(model.api.id)
},
options: {},
options: {
baseURL: resourceName ? `https://${resourceName}.cognitiveservices.azure.com/anthropic/v1` : undefined,
},
}
},
"azure-cognitive-services": async () => {