• Stefy Lanza (nextime / spora )'s avatar
    Persist the codex endpoint correction instead of losing it · c72b8a07
    Stefy Lanza (nextime / spora ) authored
    In OAuth mode _get_valid_api_key() notices the configured endpoint is
    not the ChatGPT backend, corrects base_url in memory and calls
    _update_provider_endpoint() to write the correction back. For a global
    provider that write called config.save_providers() -- a method that does
    not exist. The AttributeError was swallowed by the surrounding
    except and logged as a warning, so the correction only ever lived in
    memory: providers.json kept the wrong endpoint and every restart re-ran
    the same dance. codex_think sat like that, configured for
    api.openai.com/v1 while every request went to chatgpt.com.
    
    Rewrite providers.json in place instead, merging into the on-disk
    document rather than serialising the in-memory config, so a concurrent
    dashboard edit is not clobbered by stale state. The write goes through a
    temp file and os.replace() so a crash mid-write cannot truncate the
    config. Missing provider is now logged explicitly rather than silently
    creating an entry, and the except logs a traceback so the next failure
    of this kind is not invisible.
    
    Bump version to 0.99.92.
    Co-Authored-By: 's avatarClaude Opus 4.8 (1M context) <noreply@anthropic.com>
    c72b8a07
Name
Last commit
Last update
aisbf Loading commit data...
config Loading commit data...
docs Loading commit data...
static Loading commit data...
templates Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
API_EXAMPLES.md Loading commit data...
BUILD_DEPLOY.md Loading commit data...
CHANGELOG.md Loading commit data...
DEBUG_GUIDE.md Loading commit data...
DOCUMENTATION.md Loading commit data...
ENDPOINTS.md Loading commit data...
KILO_OAUTH2.md Loading commit data...
LICENSE.txt Loading commit data...
MANIFEST.in Loading commit data...
MISSING_ENDPOINTS.md Loading commit data...
PYPI.md Loading commit data...
QUICK_START_PAYMENT.md Loading commit data...
README.md Loading commit data...
RUNPOD_IMPLEMENTATION_PLAN.md Loading commit data...
SUBSCRIPTION_PRICING_FEATURE.md Loading commit data...
TODO.md Loading commit data...
TORRC_SETUP.md Loading commit data...
aisbf.sh Loading commit data...
build.sh Loading commit data...
chatgpt-api-implementation-guide.md Loading commit data...
clean.sh Loading commit data...
cli.py Loading commit data...
codex-oauth-implementation-guide.md Loading commit data...
main.py Loading commit data...
main.py.bak Loading commit data...
minio-archive-plan.md Loading commit data...
pyproject.toml Loading commit data...
requirements.txt Loading commit data...
screenshot.png Loading commit data...
setup.py Loading commit data...
start_proxy.sh Loading commit data...
verify_release.sh Loading commit data...