fix(providers): add registry routing, OpenAI Responses support and Gemini streaming fallbacks; compile fixes
Some checks failed
CI / Check (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Formatting (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Release Build (push) Has been cancelled

This commit is contained in:
2026-03-04 14:17:30 -05:00
parent 5a8510bf1e
commit 5b6583301d
2 changed files with 74 additions and 55 deletions

View File

@@ -309,7 +309,7 @@ impl super::Provider for OpenAIProvider {
.json(&body),
);
if let Err(e) = es_result {
if es_result.is_err() {
// Fallback to non-streaming request which itself may retry to
// Responses API if necessary (handled in chat_completion).
let resp = self.chat_completion(request.clone()).await?;