We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd8eab commit 8834574Copy full SHA for 8834574
packages/ai-core/src/common/language-model-util.ts
@@ -39,7 +39,7 @@ export const getTextOfResponse = async (response: LanguageModelResponse): Promis
39
} else if (isLanguageModelStreamResponse(response)) {
40
let result = '';
41
for await (const chunk of response.stream) {
42
- result += (isTextResponsePart(chunk) && chunk.content) ?? '';
+ result += (isTextResponsePart(chunk) && chunk.content) ? chunk.content : '';
43
}
44
return result;
45
} else if (isLanguageModelParsedResponse(response)) {
0 commit comments