fix: enable/disable penalty in chatgpt.ts

This commit is contained in:
2025-01-21 05:35:05 +08:00
parent 3151fb8477
commit edcdc70a2b
2 changed files with 14 additions and 2 deletions

View File

@@ -238,7 +238,9 @@ export default function ChatBOX() {
client.top_p = chatStore.top_p;
client.enable_top_p = chatStore.top_p_enabled;
client.frequency_penalty = chatStore.frequency_penalty;
client.frequency_penalty_enabled = chatStore.frequency_penalty_enabled;
client.presence_penalty = chatStore.presence_penalty;
client.presence_penalty_enabled = chatStore.presence_penalty_enabled;
client.json_mode = chatStore.json_mode;
client.messages = chatStore.history
// only copy non hidden message