Commit Graph

907 Commits

Author SHA1 Message Date
Michael Bolin
ca37891b68 merge commit for archive created by Sapling 2025-05-08 12:57:54 -07:00
Michael Bolin
294634377b feat: support the chat completions API in the Rust CLI 2025-05-08 12:57:49 -07:00
Michael Bolin
fbbc809820 merge commit for archive created by Sapling 2025-05-08 12:44:47 -07:00
Michael Bolin
81fc1307d5 feat: support the chat completions API in the Rust CLI 2025-05-08 12:44:41 -07:00
Michael Bolin
833a96d0b9 merge commit for archive created by Sapling 2025-05-08 12:41:49 -07:00
Michael Bolin
dd4f0453d5 feat: support the chat completions API in the Rust CLI 2025-05-08 12:41:43 -07:00
Michael Bolin
e02ffee98d merge commit for archive created by Sapling 2025-05-08 12:35:18 -07:00
Michael Bolin
1972da7d9f feat: support the chat completions API in the Rust CLI 2025-05-08 12:35:10 -07:00
Michael Bolin
3c94aa7db1 merge commit for archive created by Sapling 2025-05-08 12:33:42 -07:00
Michael Bolin
559982f1ec feat: support the chat completions API in the Rust CLI 2025-05-08 12:33:35 -07:00
Michael Bolin
3257deb32d merge commit for archive created by Sapling 2025-05-08 12:26:15 -07:00
Michael Bolin
899d48bcc3 feat: support the chat completions API in the Rust CLI 2025-05-08 12:26:09 -07:00
Michael Bolin
c372943890 Merge 5dd91e47fe into sapling-pr-archive-bolinfest 2025-05-08 12:20:47 -07:00
Michael Bolin
5dd91e47fe feat: support the chat completions API in the Rust CLI 2025-05-08 12:20:41 -07:00
Michael Bolin
3bea5e1fd3 merge commit for archive created by Sapling 2025-05-08 11:46:53 -07:00
Michael Bolin
13fb820612 feat: support the chat completions API in the Rust CLI 2025-05-08 11:46:46 -07:00
Michael Bolin
bb793643fd merge commit for archive created by Sapling 2025-05-08 11:29:23 -07:00
Michael Bolin
046d8ca49f feat: support the chat completions API in the Rust CLI 2025-05-08 11:29:17 -07:00
Michael Bolin
738c6f9884 Merge f4400df0f8 into sapling-pr-archive-bolinfest 2025-05-08 11:08:26 -07:00
Michael Bolin
f4400df0f8 feat: support the chat completions API in the Rust CLI 2025-05-08 11:08:22 -07:00
Michael Bolin
7d63895d93 merge commit for archive created by Sapling 2025-05-08 11:02:53 -07:00
Michael Bolin
b09190e842 feat: support the chat completions API in the Rust CLI 2025-05-08 11:02:48 -07:00
Michael Bolin
59c61b1a14 Merge ffda803fb7 into sapling-pr-archive-bolinfest 2025-05-08 10:49:41 -07:00
Michael Bolin
ffda803fb7 feat: support the chat completions API in the Rust CLI 2025-05-08 10:49:35 -07:00
Michael Bolin
24ecca3530 merge commit for archive created by Sapling 2025-05-08 10:49:10 -07:00
Michael Bolin
f27d589de6 feat: support the chat completions API in the Rust CLI 2025-05-08 10:49:01 -07:00
Michael Bolin
6df57d9b86 Merge ab33ddb9a6 into sapling-pr-archive-bolinfest 2025-05-07 23:14:08 -07:00
Michael Bolin
ab33ddb9a6 feat: support the chat completions API in the Rust CLI 2025-05-07 23:13:52 -07:00
Michael Bolin
457feb4996 Merge 245e11f0f0 into sapling-pr-archive-bolinfest 2025-05-07 23:08:06 -07:00
Michael Bolin
245e11f0f0 feat: support the chat completions API in the Rust CLI 2025-05-07 23:07:57 -07:00
Michael Bolin
9fdf2fa066 fix: remove clap dependency from core crate (#860) 2025-05-07 19:33:09 -07:00
Michael Bolin
7b68d83e29 Merge b9d167899a into sapling-pr-archive-bolinfest 2025-05-07 17:41:07 -07:00
Michael Bolin
b9d167899a fix: remove clap dependency from core crate 2025-05-07 17:41:00 -07:00
Michael Bolin
650715131f Merge 82454db972 into sapling-pr-archive-bolinfest 2025-05-07 17:40:57 -07:00
Michael Bolin
82454db972 fix: remove clap dependency from core crate 2025-05-07 17:40:49 -07:00
Michael Bolin
86022f097e feat: read model_provider and model_providers from config.toml (#853)
This is the first step in supporting other model providers in the Rust
CLI. Specifically, this PR adds support for the new entries in `Config`
and `ConfigOverrides` to specify a `ModelProviderInfo`, which is the
basic config needed for an LLM provider. This PR does not get us all the
way there yet because `client.rs` still categorically appends
`/responses` to the URL and expects the endpoint to support the OpenAI
Responses API. Will fix that next!
2025-05-07 17:38:28 -07:00
Michael Bolin
5cae49f08c merge commit for archive created by Sapling 2025-05-07 17:09:45 -07:00
Michael Bolin
403e88cacf feat: support map of alternative providers like in TypeScript CLI 2025-05-07 17:09:07 -07:00
Michael Bolin
4511a668f3 Merge 7c21aa3e16 into sapling-pr-archive-bolinfest 2025-05-07 16:59:19 -07:00
Michael Bolin
7c21aa3e16 feat: support map of alternative providers like in TypeScript CLI 2025-05-07 16:59:11 -07:00
Michael Bolin
955584c4ab merge commit for archive created by Sapling 2025-05-07 16:58:29 -07:00
Michael Bolin
60b522f4ee feat: support map of alternative providers like in TypeScript CLI 2025-05-07 16:58:21 -07:00
Michael Bolin
86ff8a1714 merge commit for archive created by Sapling 2025-05-07 16:44:46 -07:00
Michael Bolin
d13b807980 feat: support map of alternative providers like in TypeScript CLI 2025-05-07 16:44:31 -07:00
Michael Bolin
cfe50c7107 fix: creating an instance of Codex requires a Config (#859)
I discovered that I accidentally introduced a change in
https://github.com/openai/codex/pull/829 where we load a fresh `Config`
in the middle of `codex.rs`:


c3e10e180a/codex-rs/core/src/codex.rs (L515-L522)

This is not good because the `Config` could differ from the one that has
the user's overrides specified from the CLI. Also, in unit tests, it
means the `Config` was picking up my personal settings as opposed to
using a vanilla config, which was problematic.

This PR cleans things up by moving the common case where
`Op::ConfigureSession` is derived from `Config` (originally done in
`codex_wrapper.rs`) and making it the standard way to initialize `Codex`
by putting it in `Codex::spawn()`. Note this also eliminates quite a bit
of boilerplate from the tests and relieves the caller of the
responsibility of minting out unique IDs when invoking `submit()`.
2025-05-07 16:33:28 -07:00
Michael Bolin
3a019d4220 merge commit for archive created by Sapling 2025-05-07 16:16:23 -07:00
Michael Bolin
0b42a4aef0 fix: creating an instance of Codex requires a Config 2025-05-07 16:16:17 -07:00
Michael Bolin
c6c05788e2 merge commit for archive created by Sapling 2025-05-07 16:12:14 -07:00
Michael Bolin
6783203c20 fix: creating an instance of Codex requires a Config 2025-05-07 16:11:58 -07:00
Michael Bolin
c3e10e180a fix: remove CodexBuilder and Recorder (#858)
These abstractions were originally created exclusively for the REPL,
which was removed in https://github.com/openai/codex/pull/754.
Currently, the create some unnecessary Tokio tasks, so we are better off
without them. (We can always bring this back if we have a new use case.)
2025-05-07 16:11:42 -07:00