This adds support for easily running Codex backed by a local Ollama instance running our new open source models. See https://github.com/openai/gpt-oss for details. If you pass in `--oss` you'll be prompted to install/launch ollama, and it will automatically download the 20b model and attempt to use it. We'll likely want to expand this with some options later to make the experience smoother for users who can't run the 20b or want to run the 120b. Co-authored-by: Michael Bolin <mbolin@openai.com>
33 lines
580 B
TOML
33 lines
580 B
TOML
[package]
|
|
edition = "2024"
|
|
name = "codex-ollama"
|
|
version = { workspace = true }
|
|
|
|
[lib]
|
|
name = "codex_ollama"
|
|
path = "src/lib.rs"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
async-stream = "0.3"
|
|
bytes = "1.10.1"
|
|
codex-core = { path = "../core" }
|
|
futures = "0.3"
|
|
reqwest = { version = "0.12", features = ["json", "stream"] }
|
|
serde_json = "1"
|
|
tokio = { version = "1", features = [
|
|
"io-std",
|
|
"macros",
|
|
"process",
|
|
"rt-multi-thread",
|
|
"signal",
|
|
] }
|
|
toml = "0.9.2"
|
|
tracing = { version = "0.1.41", features = ["log"] }
|
|
wiremock = "0.6"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|