Skip to content

Commit 86827d1

Browse files
committed
review fixes
1 parent 634cb0c commit 86827d1

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

packages/vertexai/src/requests/stream-reader.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ describe('processStream', () => {
226226
);
227227
const result = processStream(fakeResponse as Response);
228228
const aggregatedResponse = await result.response;
229-
console.log(aggregatedResponse.candidates?.[0].content.parts);
230229
expect(aggregatedResponse.text()).to.equal('1');
231230
expect(aggregatedResponse.candidates?.length).to.equal(1);
232231
expect(aggregatedResponse.candidates?.[0].content.parts.length).to.equal(1);

packages/vertexai/src/requests/stream-reader.ts

-3
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@ export function aggregateResponses(
197197
if (part.functionCall) {
198198
newPart.functionCall = part.functionCall;
199199
}
200-
if (Object.keys(newPart).length === 0) {
201-
newPart.text = '';
202-
}
203200
aggregatedResponse.candidates[i].content.parts.push(
204201
newPart as Part
205202
);

0 commit comments

Comments
 (0)