mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-04 22:10:12 +01:00
[FEAT] add gpt-4-turbo-preview (#651)
* add gpt-4-turbo-preview * add gpt-4-turbo-preview to valid models
This commit is contained in:
parent
39d07feaed
commit
21653b09fc
@ -85,6 +85,7 @@ function OpenAIModelSelection({ apiKey, settings }) {
|
||||
"gpt-3.5-turbo",
|
||||
"gpt-3.5-turbo-1106",
|
||||
"gpt-4",
|
||||
"gpt-4-turbo-preview",
|
||||
"gpt-4-1106-preview",
|
||||
"gpt-4-32k",
|
||||
].map((model) => {
|
||||
|
@ -8,6 +8,7 @@ const PROVIDER_DEFAULT_MODELS = {
|
||||
"gpt-3.5-turbo",
|
||||
"gpt-3.5-turbo-1106",
|
||||
"gpt-4",
|
||||
"gpt-4-turbo-preview",
|
||||
"gpt-4-1106-preview",
|
||||
"gpt-4-32k",
|
||||
],
|
||||
|
@ -52,6 +52,8 @@ class OpenAiLLM {
|
||||
return 8192;
|
||||
case "gpt-4-1106-preview":
|
||||
return 128000;
|
||||
case "gpt-4-turbo-preview":
|
||||
return 128000;
|
||||
case "gpt-4-32k":
|
||||
return 32000;
|
||||
default:
|
||||
@ -65,6 +67,7 @@ class OpenAiLLM {
|
||||
"gpt-3.5-turbo",
|
||||
"gpt-3.5-turbo-1106",
|
||||
"gpt-4-1106-preview",
|
||||
"gpt-4-turbo-preview",
|
||||
"gpt-4-32k",
|
||||
];
|
||||
const isPreset = validModels.some((model) => modelName === model);
|
||||
|
Loading…
Reference in New Issue
Block a user