Switch pi defaults to OpenAI API provider

- set pi default provider to openai for API key auth
- stop writing openai-codex into auth.json

Tests: manual
- pi -p --provider openai --model gpt-5.2-codex "ping"
- pi -p --provider anthropic --model claude-opus-4-5 "ping"
This commit is contained in:
Josh Palmer 2026-02-02 17:22:25 +01:00
parent fbd6dc2118
commit 8f2cf7a58d
2 changed files with 2 additions and 3 deletions

View File

@ -1,9 +1,9 @@
{
"defaultProvider": "openai-codex",
"defaultProvider": "openai",
"defaultModel": "gpt-5.2-codex",
"defaultThinkingLevel": "xhigh",
"enabledModels": [
"openai-codex/gpt-5.2-codex",
"openai/gpt-5.2-codex",
"anthropic/claude-opus-4-5"
]
}

View File

@ -40,7 +40,6 @@ jq -n \
--arg anthropic "$anthropic_key" \
'{
openai: { type: "api_key", key: $openai },
"openai-codex": { type: "api_key", key: $openai },
anthropic: { type: "api_key", key: $anthropic }
}' > "$tmp_file"