Skip to content

Commit

Permalink
Update chat.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AthanaD authored Dec 26, 2023
1 parent 4a7dad5 commit 76f632c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/constants/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Respond using Markdown.`;
export const modelOptions: ModelOptions[] = [
'gpt-3.5-turbo',
'gpt-3.5-turbo-16k',
'gpt-3.5-turbo-1106',

Check failure on line 23 in src/constants/chat.ts

View workflow job for this annotation

GitHub Actions / build

Type '"gpt-3.5-turbo-1106"' is not assignable to type 'ModelOptions'. Did you mean '"gpt-3.5-turbo-16k"'?
'gpt-4',
'gpt-4-32k',
'gpt-4-1106-preview'
Expand All @@ -28,14 +29,15 @@ export const modelOptions: ModelOptions[] = [
// 'gpt-4-32k-0314',
];

export const defaultModel = 'gpt-4';
export const defaultModel = 'gpt-3.5-turbo';

export const modelMaxToken = {
'gpt-3.5-turbo': 4096,
'gpt-3.5-turbo-0301': 4096,
'gpt-3.5-turbo-0613': 4096,
'gpt-3.5-turbo-16k': 16384,
'gpt-3.5-turbo-16k-0613': 16384,
'gpt-3.5-turbo-1106': 16384,
'gpt-4': 8192,
'gpt-4-0314': 8192,
'gpt-4-0613': 8192,
Expand Down Expand Up @@ -66,6 +68,10 @@ export const modelCost = {
prompt: { price: 0.003, unit: 1000 },
completion: { price: 0.004, unit: 1000 },
},
'gpt-3.5-turbo-1106': {
prompt: { price: 0.001, unit: 1000 },
completion: { price: 0.0015, unit: 1000 },
},
'gpt-4': {
prompt: { price: 0.03, unit: 1000 },
completion: { price: 0.06, unit: 1000 },
Expand Down Expand Up @@ -96,7 +102,7 @@ export const modelCost = {
},
};

export const defaultUserMaxToken = 128000;
export const defaultUserMaxToken = 4000;

export const _defaultChatConfig: ConfigInterface = {
model: defaultModel,
Expand Down

0 comments on commit 76f632c

Please sign in to comment.