change default model to gpt-3.5-turbo-0125
This commit is contained in:
@@ -5,7 +5,7 @@ import "./global.css";
|
|||||||
import { calculate_token_length, Message } from "./chatgpt";
|
import { calculate_token_length, Message } from "./chatgpt";
|
||||||
import getDefaultParams from "./getDefaultParam";
|
import getDefaultParams from "./getDefaultParam";
|
||||||
import ChatBOX from "./chatbox";
|
import ChatBOX from "./chatbox";
|
||||||
import models from "./models";
|
import models, { defaultModel } from "./models";
|
||||||
import { Tr, langCodeContext, LANG_OPTIONS } from "./translate";
|
import { Tr, langCodeContext, LANG_OPTIONS } from "./translate";
|
||||||
|
|
||||||
import CHATGPT_API_WEB_VERSION from "./CHATGPT_API_WEB_VERSION";
|
import CHATGPT_API_WEB_VERSION from "./CHATGPT_API_WEB_VERSION";
|
||||||
@@ -71,7 +71,7 @@ export const newChatStore = (
|
|||||||
systemMessageContent = "",
|
systemMessageContent = "",
|
||||||
apiEndpoint = _defaultAPIEndpoint,
|
apiEndpoint = _defaultAPIEndpoint,
|
||||||
streamMode = true,
|
streamMode = true,
|
||||||
model = "gpt-3.5-turbo",
|
model = defaultModel,
|
||||||
temperature = 0.7,
|
temperature = 0.7,
|
||||||
dev = false,
|
dev = false,
|
||||||
whisper_api = "https://api.openai.com/v1/audio/transcriptions",
|
whisper_api = "https://api.openai.com/v1/audio/transcriptions",
|
||||||
@@ -200,7 +200,7 @@ export function App() {
|
|||||||
// handle read from old version chatstore
|
// handle read from old version chatstore
|
||||||
if (ret.maxGenTokens === undefined) ret.maxGenTokens = 2048;
|
if (ret.maxGenTokens === undefined) ret.maxGenTokens = 2048;
|
||||||
if (ret.maxGenTokens_enabled === undefined) ret.maxGenTokens_enabled = true;
|
if (ret.maxGenTokens_enabled === undefined) ret.maxGenTokens_enabled = true;
|
||||||
if (ret.model === undefined) ret.model = "gpt-3.5-turbo";
|
if (ret.model === undefined) ret.model = defaultModel;
|
||||||
if (ret.responseModelName === undefined) ret.responseModelName = "";
|
if (ret.responseModelName === undefined) ret.responseModelName = "";
|
||||||
if (ret.toolsString === undefined) ret.toolsString = "";
|
if (ret.toolsString === undefined) ret.toolsString = "";
|
||||||
if (ret.chatgpt_api_web_version === undefined)
|
if (ret.chatgpt_api_web_version === undefined)
|
||||||
|
|||||||
@@ -73,4 +73,6 @@ const models: Record<string, Model> = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const defaultModel = "gpt-3.5-turbo-0125";
|
||||||
|
|
||||||
export default models;
|
export default models;
|
||||||
|
|||||||
Reference in New Issue
Block a user