Sanidhya Singh
a216ff839b
fix(agent): honor model.default_headers for custom OpenAI-compatible providers ( #40033 )
...
Custom OpenAI-compatible endpoints sitting behind a gateway/WAF can reject
the OpenAI Python SDK's default identifying headers (User-Agent: OpenAI/Python,
X-Stainless-*) and return an opaque 502/4xx even though the same request body
succeeds under curl. There was no supported way to override those headers.
Add a model.default_headers config key whose values are merged onto the
OpenAI client's default_headers, taking precedence over provider- and
SDK-supplied defaults. Applied at client construction and on every credential
swap / client rebuild so the override survives reconnects. No-op for native
Anthropic / Bedrock modes and when unconfigured.
2026-06-07 02:02:40 -07:00
..
2026-05-19 17:27:24 -07:00
2026-06-05 03:53:59 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 07:28:24 -07:00
2026-05-24 15:14:13 -07:00
2026-05-04 05:06:33 -07:00
2026-05-12 20:46:04 -07:00
2026-05-17 02:29:41 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-21 12:49:21 +05:30
2026-05-28 22:26:25 -07:00
2026-05-27 22:14:53 -07:00
2026-05-28 22:26:25 -07:00
2026-05-14 07:55:09 -07:00
2026-05-09 21:06:19 -07:00
2026-05-28 22:26:25 -07:00
2026-05-27 01:52:34 -07:00
2026-05-31 17:46:56 -05:00
2026-05-09 12:28:42 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-19 17:27:17 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-20 11:44:10 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 03:21:00 -07:00
2026-04-30 11:18:39 -07:00
2026-05-29 19:23:05 -07:00
2026-05-20 11:44:10 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-30 23:05:23 -07:00
2026-05-11 07:37:22 -07:00
2026-06-04 06:16:45 -07:00
2026-05-02 02:09:46 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-27 11:30:55 -07:00
2026-05-05 05:00:05 -07:00
2026-05-28 22:26:25 -07:00
2026-05-10 22:28:01 -07:00
2026-05-16 22:55:49 -07:00
2026-06-06 18:44:09 -07:00
2026-05-29 02:16:43 +05:30
2026-05-07 08:35:10 -07:00
2026-05-28 22:26:25 -07:00
2026-06-06 13:18:18 +05:30
2026-05-25 01:47:55 -07:00
2026-05-25 17:43:10 +05:30
2026-05-28 00:28:42 -07:00
2026-05-31 17:46:56 -05:00
2026-06-07 02:02:40 -07:00
2026-05-09 12:48:19 -07:00
2026-06-03 16:42:52 -07:00
2026-05-28 22:26:25 -07:00
2026-05-31 06:14:32 -07:00
2026-05-28 22:26:25 -07:00
2026-05-09 22:51:25 -07:00
2026-05-28 23:29:59 -07:00
2026-06-07 01:52:49 -07:00
2026-05-12 00:16:45 +05:30
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-06-05 20:59:36 -05:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-31 17:46:56 -05:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-13 17:32:22 -07:00
2026-05-27 05:43:20 -07:00
2026-05-28 22:26:25 -07:00
2026-05-09 14:36:58 -07:00
2026-05-28 22:26:25 -07:00
2026-05-19 17:27:24 -07:00
2026-05-24 07:38:24 -07:00
2026-05-29 03:44:49 -07:00
2026-05-19 20:49:11 +01:00
2026-05-29 19:23:05 -07:00
2026-05-28 22:26:25 -07:00