From 583742c67a2646156013b16051fd4f0b10c03a0b Mon Sep 17 00:00:00 2001 From: Caixiaopig Date: Sat, 1 Jul 2023 14:16:27 +0800 Subject: [PATCH 1/2] Update cf-openai-azure-proxy.js Added support for the new gpt-35-turbo-16k model --- cf-openai-azure-proxy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/cf-openai-azure-proxy.js b/cf-openai-azure-proxy.js index 51a266f..80ae9af 100644 --- a/cf-openai-azure-proxy.js +++ b/cf-openai-azure-proxy.js @@ -4,6 +4,7 @@ const resourceName=RESOURCE_NAME // The deployment name you chose when you deployed the model. const mapper = { 'gpt-3.5-turbo': DEPLOY_NAME_GPT35, + 'gpt-3.5-turbo-16k': DEPLOY_NAME_GPT35_16K, 'gpt-4': DEPLOY_NAME_GPT4 }; From 72cbf8c4d1ff85034649cb47d911dc89f1030207 Mon Sep 17 00:00:00 2001 From: Caixiaopig Date: Sat, 1 Jul 2023 21:58:26 +0800 Subject: [PATCH 2/2] Update cf-openai-azure-proxy.js update api version for new models --- 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 80ae9af..b01cf0e 100644 --- a/cf-openai-azure-proxy.js +++ b/cf-openai-azure-proxy.js @@ -8,7 +8,7 @@ const mapper = { 'gpt-4': DEPLOY_NAME_GPT4 }; -const apiVersion="2023-05-15" +const apiVersion="2023-06-01-preview" addEventListener("fetch", (event) => { event.respondWith(handleRequest(event.request));