-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add gpt-3.5-turbo-16k and gpt-4-32k
- Loading branch information
Showing
1 changed file
with
40 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,46 @@ | ||
|
||
export const STORAGE_KEY = { | ||
MODELS: 'models', | ||
CURRENT_MODEL: 'current_model', | ||
OPENAI_API_KEY: 'openai_api_key', | ||
MODELS: 'models', | ||
CURRENT_MODEL: 'current_model', | ||
OPENAI_API_KEY: 'openai_api_key', | ||
} | ||
|
||
export const MODELS = { | ||
'gpt-3.5-turbo': { | ||
name: 'gpt-3.5-turbo', | ||
frequency_penalty: 0.0, | ||
presence_penalty: 0.0, | ||
total_tokens: 4096, | ||
max_tokens: 1000, | ||
temperature: 0.7, | ||
top_p: 1.0 | ||
}, | ||
'gpt-4': { | ||
name: 'gpt-4', | ||
frequency_penalty: 0.0, | ||
presence_penalty: 0.0, | ||
total_tokens: 8192, | ||
max_tokens: 2000, | ||
temperature: 0.7, | ||
top_p: 1.0 | ||
} | ||
'gpt-3.5-turbo': { | ||
name: 'gpt-3.5-turbo', | ||
frequency_penalty: 0.0, | ||
presence_penalty: 0.0, | ||
total_tokens: 4096, | ||
max_tokens: 1000, | ||
temperature: 0.7, | ||
top_p: 1.0 | ||
}, | ||
'gpt-3.5-turbo-16k': { | ||
name: 'gpt-3.5-16k', | ||
frequency_penalty: 0.0, | ||
presence_penalty: 0.0, | ||
total_tokens: 16384, | ||
max_tokens: 4000, | ||
temperature: 0.7, | ||
top_p: 1.0 | ||
}, | ||
'gpt-4-32k': { | ||
name: 'gpt-4-32k', | ||
frequency_penalty: 0.0, | ||
presence_penalty: 0.0, | ||
total_tokens: 32768, | ||
max_tokens: 8000, | ||
temperature: 0.7, | ||
top_p: 1.0 | ||
}, | ||
'gpt-4': { | ||
name: 'gpt-4', | ||
frequency_penalty: 0.0, | ||
presence_penalty: 0.0, | ||
total_tokens: 8192, | ||
max_tokens: 2000, | ||
temperature: 0.7, | ||
top_p: 1.0 | ||
} | ||
} | ||
|
||
export const DEFAULT_MODEL_NAME = 'gpt-3.5-turbo' | ||
export const DEFAULT_MODEL_NAME = 'gpt-3.5-turbo' |