Skip to content

Commit

Permalink
feat: update gpt-4-free model
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Dec 12, 2023
1 parent 58a493e commit d496635
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "chatnio",
"version": "3.7.4"
"version": "3.7.5"
},
"tauri": {
"allowlist": {
Expand Down
1 change: 1 addition & 0 deletions app/src/admin/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const modelColorMapper: Record<string, string> = {
"gpt-4-all": "#8e43e7",
"gpt-4-v": "#8e43e7",
"gpt-4-dalle": "#8e43e7",
"gpt-4-free": "#424242",

"gpt-4-32k": "#8329f1",
"gpt-4-32k-0613": "#8329f1",
Expand Down
11 changes: 10 additions & 1 deletion app/src/conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "@/utils/env.ts";
import { getMemory } from "@/utils/memory.ts";

export const version = "3.7.4";
export const version = "3.7.5";
export const dev: boolean = getDev();
export const deploy: boolean = true;
export let rest_api: string = getRestApi(deploy);
Expand Down Expand Up @@ -39,6 +39,13 @@ export const supportModels: Model[] = [
auth: true,
tag: ["free", "official"],
},
{
id: "gpt-4-free",
name: "GPT-4 Free",
free: true,
auth: true,
tag: ["free", "unstable", "high-quality"],
},
{
id: "gpt-4-0613",
name: "GPT-4",
Expand Down Expand Up @@ -314,6 +321,7 @@ export const supportModels: Model[] = [
export const defaultModels = [
"gpt-3.5-turbo-0613",
"gpt-3.5-turbo-16k-0613",
"gpt-4-free",
"gpt-4-0613",
"gpt-4-1106-preview",

Expand Down Expand Up @@ -372,6 +380,7 @@ export const modelAvatars: Record<string, string> = {
"gpt-3.5-turbo-16k-0613": "gpt35turbo16k.webp",
"gpt-3.5-turbo-1106": "gpt35turbo16k.webp",
"gpt-4-0613": "gpt4.png",
"gpt-4-free": "gpt4.png",
"gpt-4-1106-preview": "gpt432k.webp",
"gpt-4-vision-preview": "gpt4v.png",
"gpt-4-all": "gpt4.png",
Expand Down

0 comments on commit d496635

Please sign in to comment.