Skip to content

Commit

Permalink
Support more model mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
haibbo committed Dec 9, 2023
1 parent 365274b commit 864424c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cf-openai-azure-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ const resourceName=RESOURCE_NAME
const mapper = {
'gpt-3.5-turbo': DEPLOY_NAME_GPT35,
'gpt-3.5-turbo-0613': DEPLOY_NAME_GPT35,
'gpt-3.5-turbo-1106': DEPLOY_NAME_GPT35,
'gpt-3.5-turbo-16k': DEPLOY_NAME_GPT35,
'gpt-4': DEPLOY_NAME_GPT4,
"dall-e-3": typeof DEPLOY_NAME_DALLE3 !== 'undefined' ? DEPLOY_NAME_DALLE3 : "dalle3",
'gpt-4-0613': DEPLOY_NAME_GPT4,
'gpt-4-1106-preview': DEPLOY_NAME_GPT4,
'gpt-4-32k': DEPLOY_NAME_GPT4,
'dall-e-3': typeof DEPLOY_NAME_DALLE3 !== 'undefined' ? DEPLOY_NAME_DALLE3 : "dalle3",
};

const apiVersion="2023-12-01-preview"
Expand Down

0 comments on commit 864424c

Please sign in to comment.