Skip to content

Commit

Permalink
feat: Add gpt-3.5-turbo-1106, update prices. (#482)
Browse files Browse the repository at this point in the history
* feat: Add gpt-3.5-turbo-1106, update prices.

* Update package.json

---------

Co-authored-by: Jing Hua <[email protected]>
  • Loading branch information
maozdemir and ztjhz authored Nov 21, 2023
1 parent dd77b18 commit 28c0b88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 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',
'gpt-4',
'gpt-4-32k',
'gpt-4-1106-preview'
Expand All @@ -36,6 +37,7 @@ export const modelMaxToken = {
'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
2 changes: 1 addition & 1 deletion src/types/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface Folder {
color?: string;
}

export type ModelOptions = 'gpt-4' | 'gpt-4-32k' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-4-1106-preview' ;
export type ModelOptions = 'gpt-4' | 'gpt-4-32k' | 'gpt-4-1106-preview' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-1106' ;
// | 'gpt-3.5-turbo-0301';
// | 'gpt-4-0314'
// | 'gpt-4-32k-0314'
Expand Down

0 comments on commit 28c0b88

Please sign in to comment.