Skip to content

Commit

Permalink
Update chat.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AthanaD authored Feb 23, 2024
1 parent 000cc31 commit 2a1f559
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/constants/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ export const modelOptions: ModelOptions[] = [
'gpt-3.5-turbo',
'gpt-3.5-turbo-16k',
'gpt-3.5-turbo-1106',
'gpt-3.5-turbo-0125',
'gpt-4',
'gpt-4-32k',
'gpt-4-mobile',
'gpt-4-1106-preview'
'gpt-4-1106-preview',
'gpt-4-0125-preview'
// 'gpt-3.5-turbo-0301',
// 'gpt-4-0314',
// 'gpt-4-32k-0314',
];

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

export const modelMaxToken = {
'gpt-3.5-turbo': 4096,
Expand All @@ -40,10 +40,10 @@ export const modelMaxToken = {
'gpt-3.5-turbo-16k': 16384,
'gpt-3.5-turbo-16k-0613': 16384,
'gpt-3.5-turbo-1106': 16384,
'gpt-3.5-turbo-0125': 16384,
'gpt-4': 8192,
'gpt-4-0314': 8192,
'gpt-4-0613': 8192,
'gpt-4-mobile': 8192,
'gpt-4-32k': 32768,
'gpt-4-32k-0314': 32768,
'gpt-4-32k-0613': 32768,
Expand Down Expand Up @@ -76,6 +76,10 @@ export const modelCost = {
prompt: { price: 0.001, unit: 1000 },
completion: { price: 0.0015, unit: 1000 },
},
'gpt-3.5-turbo-0125': {
prompt: { price: 0.0005, unit: 1000 },
completion: { price: 0.0015, unit: 1000 },
},
'gpt-4': {
prompt: { price: 0.03, unit: 1000 },
completion: { price: 0.06, unit: 1000 },
Expand All @@ -88,10 +92,6 @@ export const modelCost = {
prompt: { price: 0.03, unit: 1000 },
completion: { price: 0.06, unit: 1000 },
},
'gpt-4-mobile': {
prompt: { price: 0.03, unit: 1000 },
completion: { price: 0.06, unit: 1000 },
},
'gpt-4-32k': {
prompt: { price: 0.06, unit: 1000 },
completion: { price: 0.12, unit: 1000 },
Expand All @@ -108,9 +108,13 @@ export const modelCost = {
prompt: { price: 0.01, unit: 1000 },
completion: { price: 0.03, unit: 1000 },
},
'gpt-4-0125-preview': {
prompt: { price: 0.01, unit: 1000 },
completion: { price: 0.03, unit: 1000 },
},
};

export const defaultUserMaxToken = 8192;
export const defaultUserMaxToken = 4000;

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

0 comments on commit 2a1f559

Please sign in to comment.