Skip to content

Commit

Permalink
Add model gpt-3.5-turbo-1106
Browse files Browse the repository at this point in the history
  • Loading branch information
sunls24 committed Nov 7, 2023
1 parent 6c2cb97 commit 0f45264
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 389 deletions.
4 changes: 2 additions & 2 deletions lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export enum Store {
Config = "chat-next-config",
}

export const models = ["gpt-3.5-turbo", "gpt-3.5-turbo-16k"];
export const models = ["gpt-3.5-turbo-1106"];

export const TOPIC_MAX_LENGTH = 12;
export const AUTO_TOPIC_LENGTH = 4;
export const DEFAULT_TOPIC = "新的聊天";
export const PROMPT_TOPIC =
"总结本次聊天内容的主题,限制10个字以内,不要解释、不要标点、不要语气词、不要多余文本,如果没有主题,请直接返回“闲聊”";
"总结本次聊天内容的主题,限制10个字以内,不要解释、不要标点、不要语气词、不要多余文本,如果没有主题,请直接返回“闲聊”";
2 changes: 1 addition & 1 deletion lib/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const defaultConfig = {
autoGenerateTitle: false,
apiConfig: {
apiKey: "",
model: "gpt-3.5-turbo",
model: "gpt-3.5-turbo-1106",
temperature: 0.5,
plugins: {
googleSearch: {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"next": "^14.0.1",
"next-themes": "^0.2.1",
"node-html-markdown": "^1.3.0",
"openai": "^4.14.2",
"openai": "^4.15.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.1",
Expand All @@ -42,11 +42,11 @@
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^20.8.10",
"@types/react": "^18.2.34",
"@types/react": "^18.2.36",
"@types/react-dom": "^18.2.14",
"@types/react-syntax-highlighter": "^15.5.9",
"autoprefixer": "^10.4.16",
"eslint": "^8.52.0",
"eslint": "^8.53.0",
"eslint-config-next": "^14.0.1",
"eslint-config-prettier": "^9.0.0",
"postcss": "^8.4.31",
Expand Down
Loading

0 comments on commit 0f45264

Please sign in to comment.