frontend feature adaptation for api params (user_name, assistant_name, presystem)

This commit is contained in:
josc146
2023-09-16 13:02:06 +08:00
parent f89e89c1c9
commit fcfaa5944e
4 changed files with 44 additions and 5 deletions

View File

@@ -312,7 +312,10 @@ const ChatPanel: FC = observer(() => {
stream: true,
model: commonStore.settings.apiChatModelName, // 'gpt-3.5-turbo'
temperature: apiParams.temperature,
top_p: apiParams.topP
top_p: apiParams.topP,
user_name: commonStore.activePreset?.userName,
assistant_name: commonStore.activePreset?.assistantName,
presystem: commonStore.activePreset?.presystem
}),
signal: chatSseController?.signal,
onmessage(e) {