rcourtman
6019e3e77e
fix: normalize custom OpenAI-compatible API URLs ( #1067 )
...
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
2026-01-09 09:13:36 +00:00
..
2026-01-01 22:29:15 +00:00
2026-01-09 09:13:36 +00:00
2025-12-30 23:39:55 +00:00
2026-01-09 09:13:36 +00:00
2025-12-19 22:49:30 +00:00
2025-10-14 16:48:22 +00:00
2026-01-03 20:51:25 +00:00
2026-01-08 19:19:57 +00:00
2026-01-08 19:19:57 +00:00
2025-12-02 17:21:48 +00:00
2025-12-02 13:19:11 +00:00
2026-01-08 22:54:33 +00:00
2025-12-02 00:51:44 +00:00
2025-11-15 21:49:51 +00:00
2026-01-01 22:29:15 +00:00
2025-12-01 23:50:10 +00:00
2026-01-03 11:14:17 +00:00
2025-12-01 14:46:00 +00:00
2025-12-02 17:21:48 +00:00
2025-12-02 17:21:48 +00:00
2025-12-01 14:09:35 +00:00
2025-12-02 13:36:23 +00:00
2025-11-17 14:25:46 +00:00
2025-11-17 14:25:46 +00:00
2026-01-08 23:24:50 +00:00
2026-01-08 12:06:36 +00:00
2026-01-08 12:06:36 +00:00
2026-01-03 11:14:17 +00:00
2025-12-12 11:05:24 +00:00
2025-12-01 23:24:06 +00:00
2025-12-23 18:52:13 +00:00
2026-01-04 15:38:30 +00:00
2025-12-18 21:51:25 +00:00
2025-10-11 23:29:47 +00:00
2025-11-29 17:06:18 +00:00
2026-01-02 10:29:43 +00:00
2026-01-03 18:36:17 +00:00
2025-12-02 03:16:52 +00:00
2025-11-06 13:54:26 +00:00
2026-01-03 18:36:17 +00:00
2026-01-08 10:47:45 +00:00
2026-01-08 10:47:45 +00:00
2026-01-03 18:36:17 +00:00
2025-11-30 02:48:05 +00:00
2025-10-21 12:37:39 +00:00
2025-12-12 21:31:11 +00:00
2025-12-20 20:25:20 +00:00
2026-01-09 09:13:36 +00:00
2025-12-12 11:05:24 +00:00
2025-12-10 00:29:07 +00:00
2025-12-01 23:52:21 +00:00
2025-11-27 08:34:31 +00:00
2025-12-02 16:47:13 +00:00
2025-11-29 22:03:15 +00:00
2025-12-28 10:19:32 +00:00
2025-12-01 23:08:36 +00:00
2026-01-01 14:53:00 +00:00
2025-12-02 01:00:06 +00:00
2025-12-20 10:45:46 +00:00
2025-12-02 17:21:48 +00:00
2025-12-19 14:51:52 +00:00
2025-11-30 04:33:59 +00:00
2025-12-02 15:58:59 +00:00
2026-01-08 22:54:33 +00:00
2025-10-11 23:29:47 +00:00
2026-01-03 11:14:17 +00:00
2025-12-12 11:05:24 +00:00
2025-12-07 14:47:29 +00:00
2025-12-01 21:33:45 +00:00
2025-11-24 15:16:14 +00:00
2025-12-17 20:09:51 +00:00
2025-12-02 17:21:48 +00:00
2026-01-09 09:13:36 +00:00
2026-01-01 22:29:15 +00:00
2025-11-27 10:12:48 +00:00
2025-12-02 00:13:32 +00:00
2025-12-13 21:22:04 +00:00
2025-12-02 13:51:27 +00:00
2025-12-02 00:19:20 +00:00
2025-12-23 05:10:47 +00:00
2026-01-08 14:27:45 +00:00
2025-12-18 21:51:25 +00:00
2025-12-20 10:45:46 +00:00
2026-01-03 11:14:17 +00:00
2025-12-20 10:45:46 +00:00
2026-01-03 18:36:17 +00:00
2025-11-18 21:30:04 +00:00
2025-12-01 01:05:07 +00:00
2025-11-29 21:47:22 +00:00
2026-01-03 18:36:17 +00:00
2025-12-02 11:38:47 +00:00
2025-11-30 14:07:04 +00:00
2026-01-08 23:04:25 +00:00
2025-12-09 09:29:27 +00:00
2026-01-01 22:29:15 +00:00
2025-11-30 15:05:37 +00:00
2025-12-26 20:16:15 +00:00
2026-01-01 22:29:15 +00:00
2026-01-01 22:29:15 +00:00
2025-12-19 22:49:30 +00:00
2025-12-02 16:47:13 +00:00