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 2041336 commit 779b3e4Copy full SHA for 779b3e4
core/llm/llms/Gemini.ts
@@ -1,4 +1,4 @@
1
-import { streamResponse } from "@continuedev/fetch";
+import { streamSse } from "@continuedev/fetch";
2
import { v4 as uuidv4 } from "uuid";
3
import {
4
AssistantChatMessage,
@@ -414,10 +414,9 @@ class Gemini extends BaseLLM {
414
body: JSON.stringify(body),
415
signal,
416
});
417
- for await (const message of this.processGeminiResponse(
418
- streamResponse(response),
419
- )) {
420
- yield message;
+
+ for await (const chunk of streamSse(response)) {
+ yield chunk;
421
}
422
423
private async *streamChatBison(
0 commit comments