Celia Chen
a803790a10
feat: add opt-in provider runtime abstraction ( #17713 )
...
## Summary
- Add `codex-model-provider` as the runtime home for model-provider
behavior that does not belong in `codex-core`, `codex-login`, or
`codex-api`.
- The new crate wraps configured `ModelProviderInfo` in a
`ModelProvider` trait object that can resolve the API provider config,
provider-scoped auth manager, and request auth provider for each call.
- This centralizes provider auth behavior in one place today, and gives
us an extension point for future provider-specific auth, model listing,
request setup, and related runtime behavior.
## Tests
Ran tests manually to make sure that provider auth under different
configs still work as expected.
---------
Co-authored-by: pakrym-oai <pakrym@openai.com >
2026-04-17 02:27:45 +00:00
..
2026-04-15 16:26:20 -07:00
2026-04-09 11:52:37 -07:00
2026-03-27 19:00:44 -07:00
2026-03-27 19:00:44 -07:00
2026-04-12 18:36:03 -07:00
2026-04-16 18:12:19 -07:00
2026-04-16 07:57:51 -07:00
2026-04-03 15:03:21 -07:00
2026-04-14 08:55:12 -07:00
2026-04-17 02:27:45 +00:00
2026-04-16 18:18:07 +00:00
2026-04-09 11:52:37 -07:00
2026-04-16 07:57:51 -07:00
2026-04-09 11:52:37 -07:00
2026-04-16 07:57:51 -07:00
2026-04-16 17:37:15 -07:00
2026-03-23 15:19:01 -07:00
2026-04-14 20:48:01 -07:00
2026-04-09 11:52:37 -07:00
2026-04-12 18:36:03 -07:00
2026-04-09 11:52:37 -07:00
2026-03-27 19:00:44 -07:00
2026-04-14 14:26:10 -07:00
2026-04-16 18:18:07 +00:00
2026-03-23 15:19:01 -07:00
2026-04-07 00:32:41 +00:00
2026-04-15 10:38:11 +01:00
2026-04-14 20:48:01 -07:00
2026-03-13 15:27:00 -07:00
2026-04-07 17:55:40 -07:00
2026-04-09 11:52:37 -07:00
2026-04-07 17:55:40 -07:00
2026-04-01 23:06:24 -07:00
2026-04-15 21:02:59 +08:00
2026-04-09 11:52:37 -07:00
2026-03-13 15:27:00 -07:00
2026-04-14 09:50:14 -07:00
2026-04-09 11:52:37 -07:00
2026-04-07 15:18:34 -07:00
2026-04-07 17:55:40 -07:00
2026-04-15 21:02:59 +08:00
2026-04-09 11:52:37 -07:00
2026-04-09 11:52:37 -07:00
2026-04-16 14:30:02 -07:00
2026-04-13 16:53:42 -07:00
2026-04-07 17:55:40 -07:00
2026-04-09 11:52:37 -07:00
2026-03-23 15:19:01 -07:00
2026-03-26 17:12:45 -07:00
2026-03-23 15:19:01 -07:00
2026-04-16 10:01:45 +01:00
2026-04-16 10:31:51 -07:00
2026-04-09 11:52:37 -07:00
2026-04-09 11:52:37 -07:00
2026-04-16 18:18:07 +00:00
2026-04-09 18:44:26 +01:00
2026-03-23 15:19:01 -07:00
2026-04-16 18:18:07 +00:00
2026-04-03 12:07:07 -07:00
2026-04-07 16:35:02 -07:00
2026-04-14 12:49:02 -07:00
2026-03-26 07:46:04 -07:00
2026-04-14 15:40:40 -07:00
2026-04-07 17:55:40 -07:00
2026-04-16 18:18:07 +00:00
2026-04-09 11:52:37 -07:00
2026-04-09 11:52:37 -07:00
2026-04-13 10:26:51 -07:00
2026-03-23 15:19:01 -07:00
2026-03-23 15:19:01 -07:00
2026-04-03 00:33:34 -07:00
2026-04-16 17:35:16 -07:00
2026-04-16 18:18:07 +00:00
2026-03-11 12:33:09 -07:00
2026-03-19 20:12:07 -07:00
2026-04-16 17:35:16 -07:00
2026-04-01 23:06:24 -07:00
2026-04-09 11:52:37 -07:00
2026-04-02 12:34:42 -07:00
2026-04-16 07:57:51 -07:00
2026-03-19 20:12:07 -07:00
2026-04-03 00:33:34 -07:00
2026-04-09 11:52:37 -07:00