From 9d4c9b1af91f9f070ea044a2d3e666f908f77d58 Mon Sep 17 00:00:00 2001 From: cee ray Date: Sat, 21 Feb 2026 14:15:05 -0800 Subject: [PATCH] fix(providers): disable Responses API fallback for NVIDIA NIM NVIDIA's NIM API (integrate.api.nvidia.com) does not support the OpenAI Responses API endpoint. When chat completions returns a non-success status, the fallback to /v1/responses also fails with 404, producing a confusing double-failure error. Use `new_no_responses_fallback()` for the NVIDIA provider, matching the approach already used for GLM and other chat-completions-only providers. Fixes #1282 --- src/providers/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/mod.rs b/src/providers/mod.rs index 54013d459..d23cf4340 100644 --- a/src/providers/mod.rs +++ b/src/providers/mod.rs @@ -1175,7 +1175,7 @@ fn create_provider_with_url_and_options( ))) } "nvidia" | "nvidia-nim" | "build.nvidia.com" => Ok(Box::new( - OpenAiCompatibleProvider::new( + OpenAiCompatibleProvider::new_no_responses_fallback( "NVIDIA NIM", "https://integrate.api.nvidia.com/v1", key,