diff options
Diffstat (limited to 'internal/llm/openrouter_test.go')
| -rw-r--r-- | internal/llm/openrouter_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/llm/openrouter_test.go b/internal/llm/openrouter_test.go index 2a07be0..f8efe16 100644 --- a/internal/llm/openrouter_test.go +++ b/internal/llm/openrouter_test.go @@ -75,8 +75,8 @@ func TestOpenRouter_ChatStream_SendsHeaders(t *testing.T) { acceptHeader = r.Header.Get("Accept") referer = r.Header.Get("HTTP-Referer") w.Header().Set("Content-Type", "text/event-stream") - io.WriteString(w, "data: {\"choices\":[{\"delta\":{\"content\":\"hi\"}}]}\n\n") - io.WriteString(w, "data: [DONE]\n") + _, _ = io.WriteString(w, "data: {\"choices\":[{\"delta\":{\"content\":\"hi\"}}]}\n\n") + _, _ = io.WriteString(w, "data: [DONE]\n") })) defer srv.Close() |
