mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## What changed Have the TUI and `codex exec` pass the selected provider, optional model, and HTTP client factory to shared OSS setup. Validate the provider's `base_url` there and connect to Ollama or LM Studio using that URL and factory. Return a configuration error when Ollama's URL is missing. Remove the runtime dependency on `codex-core` from the OSS utilities and both provider crates. Enable the existing Rustls key exchange preference and vendored OpenSSL for musl builds directly in the provider crates. ## Testing Add coverage for the error returned by each provider when `base_url` is missing. Extend the Ollama client reuse test to check readiness for an explicitly selected, already installed model. GitOrigin-RevId: 747ed51c6fcfa2a0ffc61ba5aa8ea4d033450241
38 lines
1.0 KiB
TOML
38 lines
1.0 KiB
TOML
[package]
|
|
name = "codex-lmstudio"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lib]
|
|
name = "codex_lmstudio"
|
|
path = "src/lib.rs"
|
|
doctest = false
|
|
|
|
[package.metadata.cargo-shear]
|
|
# Enable the existing key exchange preference for HTTPS with a custom CA.
|
|
ignored = ["rustls"]
|
|
|
|
[dependencies]
|
|
codex-http-client = { workspace = true }
|
|
rustls = { workspace = true, features = ["prefer-post-quantum"] }
|
|
serde_json = { workspace = true, features = ["arbitrary_precision"] }
|
|
tokio = { version = "1", features = ["rt"] }
|
|
tracing = { version = "0.1.44", features = ["log"] }
|
|
which = "8.0"
|
|
|
|
# Build OpenSSL from source for standalone musl builds.
|
|
[target.x86_64-unknown-linux-musl.dependencies]
|
|
openssl-sys = { workspace = true, features = ["vendored"] }
|
|
|
|
[target.aarch64-unknown-linux-musl.dependencies]
|
|
openssl-sys = { workspace = true, features = ["vendored"] }
|
|
|
|
[dev-dependencies]
|
|
codex-core = { workspace = true }
|
|
wiremock = "0.6"
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
[lints]
|
|
workspace = true
|