wip
This commit is contained in:
parent
84c4fe971a
commit
ff77016c8b
1 changed files with 5 additions and 1 deletions
|
|
@ -140,7 +140,9 @@ export namespace Provider {
|
||||||
options: {},
|
options: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// TODO: handle the openai and anthropic deployments
|
||||||
azure: async () => {
|
azure: async () => {
|
||||||
|
const resourceName = Env.get("AZURE_RESOURCE_NAME")
|
||||||
return {
|
return {
|
||||||
autoload: false,
|
autoload: false,
|
||||||
async getModel(sdk: any, model: Model, options?: Record<string, any>) {
|
async getModel(sdk: any, model: Model, options?: Record<string, any>) {
|
||||||
|
|
@ -152,7 +154,9 @@ export namespace Provider {
|
||||||
}
|
}
|
||||||
return sdk.responses(model.api.id)
|
return sdk.responses(model.api.id)
|
||||||
},
|
},
|
||||||
options: {},
|
options: {
|
||||||
|
baseURL: resourceName ? `https://${resourceName}.cognitiveservices.azure.com/anthropic/v1` : undefined,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"azure-cognitive-services": async () => {
|
"azure-cognitive-services": async () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue