refac: models newChatStore

This commit is contained in:
2024-10-15 10:34:35 +08:00
parent dccf4827c9
commit ee9da49f70
9 changed files with 85 additions and 82 deletions

View File

@@ -1,4 +1,4 @@
import { defaultModel } from "@/models";
import { DefaultModel } from "@/const";
export interface ImageURL {
url: string;
@@ -157,7 +157,7 @@ class Chat {
enable_max_gen_tokens = true,
tokens_margin = 1024,
apiEndPoint = "https://api.openai.com/v1/chat/completions",
model = defaultModel,
model = DefaultModel,
temperature = 0.7,
enable_temperature = true,
top_p = 1,