From fbe2016953b6932f62a68866f2a1f505fc9d05a6 Mon Sep 17 00:00:00 2001 From: Caixiaopig Date: Mon, 29 May 2023 15:40:26 +0800 Subject: [PATCH] Update cf-openai-azure-proxy.js Following the recommendation of Azure OpenAI Service official documentation, upgrade the version number of Chat Completion API to "2023-05-15". --- cf-openai-azure-proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf-openai-azure-proxy.js b/cf-openai-azure-proxy.js index 64c07e6..02b6cda 100644 --- a/cf-openai-azure-proxy.js +++ b/cf-openai-azure-proxy.js @@ -7,7 +7,7 @@ const mapper = { 'gpt-4': DEPLOY_NAME_GPT4 }; -const apiVersion="2023-03-15-preview" +const apiVersion="2023-05-15" addEventListener("fetch", (event) => { event.respondWith(handleRequest(event.request));