From 78c3c38f901842a0c1b095a5e1f7ca7464fad676 Mon Sep 17 00:00:00 2001 From: sinedied Date: Wed, 3 Apr 2024 14:22:06 +0200 Subject: [PATCH] chore: update openai api version --- packages/indexer/src/plugins/openai.ts | 2 +- packages/search/src/plugins/openai.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(