mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 09:44:47 +00:00
fix: completions delta
This commit is contained in:
@@ -324,7 +324,7 @@ async function streamResponse({
|
||||
const { data } = parseData.parse(item);
|
||||
if (!data || data === '[DONE]') return;
|
||||
|
||||
const content: string = data?.choices?.[0].delta.content || '';
|
||||
const content: string = data?.choices?.[0]?.delta?.content || '';
|
||||
error = data.error;
|
||||
answer += content;
|
||||
|
||||
|
Reference in New Issue
Block a user