mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
6019e3e77e
Users providing base URLs like "https://openrouter.ai/api/v1" were getting HTML error responses because the client used the URL directly without appending "/chat/completions". - Normalize baseURL in NewOpenAIClient to ensure it ends with /chat/completions - Fix modelsEndpoint() to derive /models from the normalized baseURL - Add tests for URL normalization with various endpoint formats