Skip to content

Commit 9a68705

Browse files
milispclaude
andcommitted
fix: replace --oss flag with model_provider=oss config for proto subcommand
The proto subcommand doesn't support the --oss flag, so we need to use the -c model_provider=oss configuration format instead. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d5fb307 commit 9a68705

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src-tauri/src/codex_client/command_builder.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ impl CommandBuilder {
111111
async fn configure_provider(cmd: &mut Command, config: &CodexConfig) -> Result<()> {
112112
// Handle provider configuration
113113
if !config.provider.is_empty() && config.provider != "openai" {
114-
// Special case for ollama - use --oss flag instead of model_provider config
114+
// Special case for ollama - use model_provider=oss config instead of --oss flag
115+
// because --oss is not available for proto subcommand
115116
if config.provider.to_lowercase() == "ollama" {
116-
cmd.arg("--oss");
117+
cmd.arg("-c").arg("model_provider=oss");
117118

118119
// Still set model if specified
119120
if !config.model.is_empty() {
@@ -172,7 +173,7 @@ impl CommandBuilder {
172173
} else {
173174
// Original logic for OSS and default cases
174175
if config.use_oss {
175-
cmd.arg("--oss");
176+
cmd.arg("-c").arg("model_provider=oss");
176177
}
177178

178179
if !config.model.is_empty() {

0 commit comments

Comments
 (0)