We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69d402a commit 4fffe22Copy full SHA for 4fffe22
worker/src/lib/clients/llmmapper/router/oai2ant/stream.ts
@@ -2,10 +2,6 @@ import { AnthropicToOpenAIStreamConverter } from "../../providers/anthropic/stre
2
import { toAnthropic } from "../../providers/openai/request/toAnthropic";
3
import { OpenAIRequestBody } from "../../types";
4
5
-const ENDING_MESSAGE = `data: {"id":"chatcmpl-A4kEtQWA8g4OlOYtKaDdBKLWdhrBx","object":"chat.completion.chunk","created":1725694419,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_25624ae3a5","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}
6
-data: [DONE]
7
-`;
8
-
9
// transform the readable stream from Anthropic SSE to OpenAI SSE format
10
export function oai2antStream(
11
stream: ReadableStream<Uint8Array>
0 commit comments