Skip to content

Commit

Permalink
Update api.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AthanaD authored Jan 1, 2024
1 parent f84c1cd commit 3e685a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ 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-4-mobile': 'gpt-4-mobile',

Check failure on line 24 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-4-mobile': string; }' is not assignable to type 'Partial<Record<ModelOptions, string>>'.
};

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

0 comments on commit 3e685a8

Please sign in to comment.