mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-23 13:08:11 +00: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
3 changed files with 5 additions and 0 deletions
frontend/src/components
LLMSelection/OpenAiOptions
Modals/MangeWorkspace/Settings/ChatModelPreference
server/utils/AiProviders/openAi
|
@ -85,6 +85,7 @@ function OpenAIModelSelection({ apiKey, settings }) {
|
||||||
"gpt-3.5-turbo",
|
"gpt-3.5-turbo",
|
||||||
"gpt-3.5-turbo-1106",
|
"gpt-3.5-turbo-1106",
|
||||||
"gpt-4",
|
"gpt-4",
|
||||||
|
"gpt-4-turbo-preview",
|
||||||
"gpt-4-1106-preview",
|
"gpt-4-1106-preview",
|
||||||
"gpt-4-32k",
|
"gpt-4-32k",
|
||||||
].map((model) => {
|
].map((model) => {
|
||||||
|
|
|
@ -8,6 +8,7 @@ const PROVIDER_DEFAULT_MODELS = {
|
||||||
"gpt-3.5-turbo",
|
"gpt-3.5-turbo",
|
||||||
"gpt-3.5-turbo-1106",
|
"gpt-3.5-turbo-1106",
|
||||||
"gpt-4",
|
"gpt-4",
|
||||||
|
"gpt-4-turbo-preview",
|
||||||
"gpt-4-1106-preview",
|
"gpt-4-1106-preview",
|
||||||
"gpt-4-32k",
|
"gpt-4-32k",
|
||||||
],
|
],
|
||||||
|
|
|
@ -52,6 +52,8 @@ class OpenAiLLM {
|
||||||
return 8192;
|
return 8192;
|
||||||
case "gpt-4-1106-preview":
|
case "gpt-4-1106-preview":
|
||||||
return 128000;
|
return 128000;
|
||||||
|
case "gpt-4-turbo-preview":
|
||||||
|
return 128000;
|
||||||
case "gpt-4-32k":
|
case "gpt-4-32k":
|
||||||
return 32000;
|
return 32000;
|
||||||
default:
|
default:
|
||||||
|
@ -65,6 +67,7 @@ class OpenAiLLM {
|
||||||
"gpt-3.5-turbo",
|
"gpt-3.5-turbo",
|
||||||
"gpt-3.5-turbo-1106",
|
"gpt-3.5-turbo-1106",
|
||||||
"gpt-4-1106-preview",
|
"gpt-4-1106-preview",
|
||||||
|
"gpt-4-turbo-preview",
|
||||||
"gpt-4-32k",
|
"gpt-4-32k",
|
||||||
];
|
];
|
||||||
const isPreset = validModels.some((model) => modelName === model);
|
const isPreset = validModels.some((model) => modelName === model);
|
||||||
|
|
Loading…
Add table
Reference in a new issue