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 0f106fc commit e8df63dCopy full SHA for e8df63d
packages/ai/src/requests/response-helpers.ts
@@ -168,7 +168,10 @@ export function addHelpers(
168
* which represent the model's internal reasoning. If `false`, extracts text from
169
* regular response parts.
170
*/
171
-export function getText(response: GenerateContentResponse, isThought: boolean): string {
+export function getText(
172
+ response: GenerateContentResponse,
173
+ isThought: boolean
174
+): string {
175
const textStrings = [];
176
if (response.candidates?.[0].content?.parts) {
177
for (const part of response.candidates?.[0].content?.parts) {
0 commit comments