Move API credentials to .env and set gpt-5.6-luna model

- Load OPENAI_API_KEY and OPENAI_BASE_URL from gitignored .env (repo-root, CWD-independent)
- Fix command explanation to use the configured model instead of hardcoded gpt-4o-mini
- Update default model and fallbacks to gpt-5.6-luna
- Document .env-based configuration in READMEs
This commit is contained in:
2026-09-09 23:07:05 +02:00
parent 9464ed9501
commit e31e58c9c4
7 changed files with 77 additions and 19 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ def handle_command_execution(client, config, command, explain=False):
use_rich = ui_config.get("rich_formatting", True)
# Generate explanation
explanation = get_command_explanation(client, command, structured=structured)
explanation = get_command_explanation(client, command, structured=structured, model=config.get("model"))
if use_rich:
print() # Add a blank line before the explanation