diff --git a/packages/indexer/src/plugins/openai.ts b/packages/indexer/src/plugins/openai.ts index 448014f2..874c490e 100644 --- a/packages/indexer/src/plugins/openai.ts +++ b/packages/indexer/src/plugins/openai.ts @@ -12,7 +12,7 @@ export type OpenAiService = { }; }; -const AZURE_OPENAI_API_VERSION = '2023-05-15'; +const AZURE_OPENAI_API_VERSION = '2024-02-01'; const AZURE_COGNITIVE_SERVICES_AD_SCOPE = 'https://cognitiveservices.azure.com/.default'; export default fp( diff --git a/packages/search/src/plugins/openai.ts b/packages/search/src/plugins/openai.ts index de2a97d8..71445cbc 100644 --- a/packages/search/src/plugins/openai.ts +++ b/packages/search/src/plugins/openai.ts @@ -13,7 +13,7 @@ export type OpenAiService = { }; }; -const AZURE_OPENAI_API_VERSION = '2023-05-15'; +const AZURE_OPENAI_API_VERSION = '2024-02-01'; const AZURE_COGNITIVE_SERVICES_AD_SCOPE = 'https://cognitiveservices.azure.com/.default'; export default fp(