temperature default to 1
This commit is contained in:
@@ -55,7 +55,7 @@ ChatGPT API WEB 是为 ChatGPT 的日常用户和 Prompt 工程师设计的项
|
|||||||
- `api`: API Endpoint 默认为 `https://api.openai.com/v1/chat/completions`
|
- `api`: API Endpoint 默认为 `https://api.openai.com/v1/chat/completions`
|
||||||
- `mode`: `fetch` 或 `stream` 模式,stream 模式下可以动态看到 api 返回的数据,但无法得知 token 数量,只能进行估算,在 token 数量过多时可能会裁切过多或过少历史消息
|
- `mode`: `fetch` 或 `stream` 模式,stream 模式下可以动态看到 api 返回的数据,但无法得知 token 数量,只能进行估算,在 token 数量过多时可能会裁切过多或过少历史消息
|
||||||
- `dev`: true / false 开发模式,这个模式下可以看到并调整更多参数
|
- `dev`: true / false 开发模式,这个模式下可以看到并调整更多参数
|
||||||
- `temp`: 温度,默认 0.7
|
- `temp`: 温度,默认 1
|
||||||
- `whisper-api`: Whisper 语音转文字服务 API, 只有设置了此值后才会显示语音转文字按钮
|
- `whisper-api`: Whisper 语音转文字服务 API, 只有设置了此值后才会显示语音转文字按钮
|
||||||
- `whisper-key`: 用于 Whisper 服务的 key,如果留空则默认使用上方的 OPENAI API KEY
|
- `whisper-key`: 用于 Whisper 服务的 key,如果留空则默认使用上方的 OPENAI API KEY
|
||||||
|
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ class Chat {
|
|||||||
tokens_margin = 1024,
|
tokens_margin = 1024,
|
||||||
apiEndPoint = "https://api.openai.com/v1/chat/completions",
|
apiEndPoint = "https://api.openai.com/v1/chat/completions",
|
||||||
model = DefaultModel,
|
model = DefaultModel,
|
||||||
temperature = 0.7,
|
temperature = 1,
|
||||||
enable_temperature = true,
|
enable_temperature = true,
|
||||||
top_p = 1,
|
top_p = 1,
|
||||||
enable_top_p = false,
|
enable_top_p = false,
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export const newChatStore = (options: NewChatStoreOptions): ChatStore => {
|
|||||||
streamMode: getDefaultParams("mode", options.streamMode ?? true),
|
streamMode: getDefaultParams("mode", options.streamMode ?? true),
|
||||||
model: getDefaultParams("model", options.model ?? DefaultModel),
|
model: getDefaultParams("model", options.model ?? DefaultModel),
|
||||||
cost: 0,
|
cost: 0,
|
||||||
temperature: getDefaultParams("temp", options.temperature ?? 0.7),
|
temperature: getDefaultParams("temp", options.temperature ?? 1),
|
||||||
temperature_enabled: options.temperature_enabled ?? true,
|
temperature_enabled: options.temperature_enabled ?? true,
|
||||||
top_p: options.top_p ?? 1,
|
top_p: options.top_p ?? 1,
|
||||||
top_p_enabled: options.top_p_enabled ?? false,
|
top_p_enabled: options.top_p_enabled ?? false,
|
||||||
|
|||||||
Reference in New Issue
Block a user