feat: enable SSE streaming support in Anthropic handler

- Updated AnthropicHandler to check for streaming configuration before handling SSE transform.
- Modified handleStreaming to use the original request body instead of forcing stream to true.
- Adjusted the transformation logic in AnthropicToBifrost to respect the original stream setting.
- Added logging for SSE streaming configuration in the main application.
This commit is contained in:
Beyhan Ogur
2026-05-11 15:28:56 +03:00
parent f0a4e89e0f
commit c56ae7194c
10 changed files with 193 additions and 21 deletions
+1
View File
@@ -160,6 +160,7 @@ func main() {
if db != nil {
log.Printf(" DB logging : enabled")
}
log.Printf(" SSE streaming : %v", cfg.Streaming)
if err := app.Listen(addr); err != nil {
log.Fatalf("server error: %v", err)