Roo-Code/src/api
Hannes Rudolph 23d34154d0
fix: guard against empty-string baseURL in provider constructors (#11233)
When the 'custom base URL' checkbox is unchecked in the UI, the setting
is set to '' (empty string). Providers that passed this directly to their
SDK constructors caused 'Failed to parse URL' errors because the SDK
treated '' as a valid but broken base URL override.

- gemini.ts: use || undefined (was passing raw option)
- openai-native.ts: use || undefined (was passing raw option)
- openai.ts: change ?? to || for fallback default
- deepseek.ts: change ?? to || for fallback default
- moonshot.ts: change ?? to || for fallback default

Adds test coverage for Gemini and OpenAI Native constructors verifying
empty-string baseURL is coerced to undefined.
2026-02-05 15:30:59 -08:00
..
providers fix: guard against empty-string baseURL in provider constructors (#11233) 2026-02-05 15:30:59 -08:00
transform fix(ai-sdk): preserve reasoning parts in message conversion (#11217) 2026-02-05 10:48:21 -07:00
index.ts fix(ai-sdk): preserve reasoning parts in message conversion (#11217) 2026-02-05 10:48:21 -07:00