temperature default to 1

This commit is contained in:
2024-12-08 16:41:42 +08:00
parent 64f1e3d70e
commit 5039bdfca8
3 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ ChatGPT API WEB 是为 ChatGPT 的日常用户和 Prompt 工程师设计的项
- `api`: API Endpoint 默认为 `https://api.openai.com/v1/chat/completions`
- `mode`: `fetch``stream` 模式stream 模式下可以动态看到 api 返回的数据,但无法得知 token 数量,只能进行估算,在 token 数量过多时可能会裁切过多或过少历史消息
- `dev`: true / false 开发模式,这个模式下可以看到并调整更多参数
- `temp`: 温度,默认 0.7
- `temp`: 温度,默认 1
- `whisper-api`: Whisper 语音转文字服务 API, 只有设置了此值后才会显示语音转文字按钮
- `whisper-key`: 用于 Whisper 服务的 key如果留空则默认使用上方的 OPENAI API KEY

View File

@@ -158,7 +158,7 @@ class Chat {
tokens_margin = 1024,
apiEndPoint = "https://api.openai.com/v1/chat/completions",
model = DefaultModel,
temperature = 0.7,
temperature = 1,
enable_temperature = true,
top_p = 1,
enable_top_p = false,

View File

@@ -62,7 +62,7 @@ export const newChatStore = (options: NewChatStoreOptions): ChatStore => {
streamMode: getDefaultParams("mode", options.streamMode ?? true),
model: getDefaultParams("model", options.model ?? DefaultModel),
cost: 0,
temperature: getDefaultParams("temp", options.temperature ?? 0.7),
temperature: getDefaultParams("temp", options.temperature ?? 1),
temperature_enabled: options.temperature_enabled ?? true,
top_p: options.top_p ?? 1,
top_p_enabled: options.top_p_enabled ?? false,