Skip to content

Commit

Permalink
Update api.ts (#483)
Browse files Browse the repository at this point in the history
Update Azure API version. Sorry for closing PR by mistake earlier.
https://learn.microsoft.com/en-us/azure/ai-services/openai/reference
  • Loading branch information
yfw918 committed Nov 11, 2023
1 parent 2e27f25 commit dd77b18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const getChatCompletion = async (

const modelmapping: Partial<Record<ModelOptions, string>> = {
'gpt-3.5-turbo': 'gpt-35-turbo',
'gpt-3.5-turbo-16k': 'gpt35-turbo-16k',
'gpt-3.5-turbo-16k': 'gpt-35-turbo-16k',
};

const model = modelmapping[config.model] || config.model;
Expand Down Expand Up @@ -74,7 +74,7 @@ export const getChatCompletionStream = async (

const modelmapping: Partial<Record<ModelOptions, string>> = {
'gpt-3.5-turbo': 'gpt-35-turbo',
'gpt-3.5-turbo-16k': 'gpt35-turbo-16k',
'gpt-3.5-turbo-16k': 'gpt-35-turbo-16k',
};

const model = modelmapping[config.model] || config.model;
Expand Down

0 comments on commit dd77b18

Please sign in to comment.