improve the compatibility between frontend presets and chatgpt api
This commit is contained in:
parent
ff7306349a
commit
54355d5a7a
@ -339,9 +339,9 @@ const ChatPanel: FC = observer(() => {
|
|||||||
model: commonStore.settings.apiChatModelName, // 'gpt-3.5-turbo'
|
model: commonStore.settings.apiChatModelName, // 'gpt-3.5-turbo'
|
||||||
temperature: apiParams.temperature,
|
temperature: apiParams.temperature,
|
||||||
top_p: apiParams.topP,
|
top_p: apiParams.topP,
|
||||||
user_name: commonStore.activePreset?.userName,
|
user_name: commonStore.activePreset?.userName || undefined,
|
||||||
assistant_name: commonStore.activePreset?.assistantName,
|
assistant_name: commonStore.activePreset?.assistantName || undefined,
|
||||||
presystem: commonStore.activePreset?.presystem
|
presystem: commonStore.activePreset?.presystem && undefined
|
||||||
}),
|
}),
|
||||||
signal: chatSseController?.signal,
|
signal: chatSseController?.signal,
|
||||||
onmessage(e) {
|
onmessage(e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user