We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ba4bf9 commit 93989c7Copy full SHA for 93989c7
1 file changed
src/github/copilotRemoteAgent/chatSessionContentBuilder.ts
@@ -270,6 +270,10 @@ export class ChatSessionContentBuilder {
270
let currentResponseContent = '';
271
272
for (const chunk of logChunks) {
273
+ if (!chunk.choices || !Array.isArray(chunk.choices)) {
274
+ continue;
275
+ }
276
+
277
for (const choice of chunk.choices) {
278
const delta = choice.delta;
279
if (delta.role === 'assistant') {
0 commit comments