mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Add Azure API version option
This commit is contained in:
@@ -17,7 +17,8 @@ export class OpenAiHandler implements ApiHandler {
|
||||
apiKey: this.options.openAiApiKey,
|
||||
// https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation
|
||||
// https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#api-specs
|
||||
apiVersion: "2024-08-01-preview",
|
||||
// (make sure to update API options placeholder)
|
||||
apiVersion: this.options.azureApiVersion || "2024-08-01-preview",
|
||||
})
|
||||
} else {
|
||||
this.client = new OpenAI({
|
||||
|
||||
Reference in New Issue
Block a user