support enable/disable temperature and top_p

This commit is contained in:
2023-11-03 14:01:16 +08:00
parent 40081f81f7
commit 6bf6fb9455
4 changed files with 61 additions and 13 deletions

View File

@@ -158,7 +158,9 @@ export default function ChatBOX(props: {
client.sysMessageContent = chatStore.systemMessageContent;
client.tokens_margin = chatStore.tokenMargin;
client.temperature = chatStore.temperature;
client.enable_temperature = chatStore.temperature_enabled;
client.top_p = chatStore.top_p;
client.enable_top_p = chatStore.top_p_enabled
client.frequency_penalty = chatStore.frequency_penalty;
client.presence_penalty = chatStore.presence_penalty;
client.messages = chatStore.history