## Overview Adds LM Studio OSS support. Closes #1883 ### Changes This PR enhances the behavior of `--oss` flag to support LM Studio as a provider. Additionally, it introduces a new flag`--local-provider` which can take in `lmstudio` or `ollama` as values if the user wants to explicitly choose which one to use. If no provider is specified `codex --oss` will auto-select the provider based on whichever is running. #### Additional enhancements The default can be set using `oss-provider` in config like: ``` oss_provider = "lmstudio" ``` For non-interactive users, they will need to either provide the provider as an arg or have it in their `config.toml` ### Notes For best performance, [set the default context length](https://lmstudio.ai/docs/app/advanced/per-model) for gpt-oss to the maximum your machine can support --------- Co-authored-by: Matt Clayton <matt@lmstudio.ai> Co-authored-by: Eric Traut <etraut@openai.com>
41 lines
1.1 KiB
Rust
41 lines
1.1 KiB
Rust
#[cfg(feature = "cli")]
|
|
mod approval_mode_cli_arg;
|
|
|
|
#[cfg(feature = "elapsed")]
|
|
pub mod elapsed;
|
|
|
|
#[cfg(feature = "cli")]
|
|
pub use approval_mode_cli_arg::ApprovalModeCliArg;
|
|
|
|
#[cfg(feature = "cli")]
|
|
mod sandbox_mode_cli_arg;
|
|
|
|
#[cfg(feature = "cli")]
|
|
pub use sandbox_mode_cli_arg::SandboxModeCliArg;
|
|
|
|
#[cfg(feature = "cli")]
|
|
pub mod format_env_display;
|
|
|
|
#[cfg(any(feature = "cli", test))]
|
|
mod config_override;
|
|
|
|
#[cfg(feature = "cli")]
|
|
pub use config_override::CliConfigOverrides;
|
|
|
|
mod sandbox_summary;
|
|
|
|
#[cfg(feature = "sandbox_summary")]
|
|
pub use sandbox_summary::summarize_sandbox_policy;
|
|
|
|
mod config_summary;
|
|
|
|
pub use config_summary::create_config_summary_entries;
|
|
// Shared fuzzy matcher (used by TUI selection popups and other UI filtering)
|
|
pub mod fuzzy_match;
|
|
// Shared model presets used by TUI and MCP server
|
|
pub mod model_presets;
|
|
// Shared approval presets (AskForApproval + Sandbox) used by TUI and MCP server
|
|
// Not to be confused with AskForApproval, which we should probably rename to EscalationPolicy.
|
|
pub mod approval_presets;
|
|
// Shared OSS provider utilities used by TUI and exec
|
|
pub mod oss;
|