Skip to content

Commit

Permalink
support latest azure gpt-3.5 models (1106 and 0125) (#523)
Browse files Browse the repository at this point in the history
* support azure gpt-3.5-turbo-1106 model

fixes #518

* support azure gpt 3.5 0125 model
  • Loading branch information
fcakyon committed Jan 30, 2024
1 parent 8627cf0 commit 8ecf8f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export const getChatCompletion = async (
const modelmapping: Partial<Record<ModelOptions, string>> = {
'gpt-3.5-turbo': 'gpt-35-turbo',
'gpt-3.5-turbo-16k': 'gpt-35-turbo-16k',
'gpt-3.5-turbo-1106': 'gpt-35-turbo-1106',
'gpt-3.5-turbo-0125': 'gpt-35-turbo-0125',

Check failure on line 25 in src/api/api.ts

View workflow job for this annotation

GitHub Actions / build

Type '{ 'gpt-3.5-turbo': string; 'gpt-3.5-turbo-16k': string; 'gpt-3.5-turbo-1106': string; 'gpt-3.5-turbo-0125': string; }' is not assignable to type 'Partial<Record<ModelOptions, string>>'.
};

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

0 comments on commit 8ecf8f9

Please sign in to comment.