ollama/middleware
ParthSareen bd4ab011ac middleware: use HTTP status code for Anthropic error mapping
Use w.ResponseWriter.Status() instead of parsing StatusCode from JSON
payload. routes.go typically sends errors as gin.H{"error": "..."}
without a StatusCode field, causing all errors to be mapped to
"api_error" instead of the appropriate type (not_found_error,
invalid_request_error, etc.).

Added tests to verify error handling for common routes.go patterns.
2026-01-05 19:19:34 -08:00
..
anthropic.go middleware: use HTTP status code for Anthropic error mapping 2026-01-05 19:19:34 -08:00
anthropic_test.go middleware: use HTTP status code for Anthropic error mapping 2026-01-05 19:19:34 -08:00
openai.go openai: add v1/responses support (#13351) 2025-12-11 15:37:10 -08:00
openai_encoding_format_test.go embeddings: base64 encoding fix (#12715) 2025-10-22 11:27:44 -07:00
openai_test.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00