A minimal command line assistant demo that talks to an OpenAI-compatible chat completions API.
Edit model_config.json first:
{
"base_url": "https://api.openai.com/v1",
"api_key": "sk-...",
"model": "gpt-4.1-mini"
}Then run from the project directory in Windows cmd:
wdcodeIn PowerShell, Windows requires the current-directory prefix:
.\wdcodeYou can still run directly with command line config:
python .\src\wdcode\cli\main.py --base-url https://api.openai.com/v1 --api-key sk-... --model gpt-4.1-miniOr use environment variables:
$env:OPENAI_BASE_URL="https://api.openai.com/v1"
$env:OPENAI_API_KEY="sk-..."
$env:OPENAI_MODEL="gpt-4.1-mini"
python .\src\wdcode\cli\main.pySave config back to model_config.json:
python .\src\wdcode\cli\main.py --base-url https://api.openai.com/v1 --api-key sk-... --model gpt-4.1-mini --save-configInside the CLI, type /exit or /quit to stop.