Skip to content

Codex Cli conection failed #330

@dungnguyenv90

Description

@dungnguyenv90
  • Version: codex-cli 0.115.0
  • OS: MacOS

Follow the guile on 9router Github

Config:

export OPENAI_BASE_URL="https://9router.proai.lol"
export OPENAI_API_KEY="your-9router-api-key"

Response:

unexpected status 404 Not Found: <!DOCTYPE html><!--9RX4Zyl_24RoSgOayFvT_--><html lang="en"><head><meta
charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload"
href="/_next/static/media/e4af272ccee01ff0-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link r
el="stylesheet" href="/_next/static/css/b76a211a38cbc900.css" data-precedence="next"/><link rel="preload"
as="script" fetchPriority="low" href="/_next/static/chunks/webpack-b471b7a22df5699e.js"/><script src="/_n
ext/static/chunks/4bd1b696-e5d7c65570c947b7.js" async=""></script><script src="/_next/static/chunks/3794-
337d1ca25ad99a89.js" async=""></script><script src="/_next/static/chunks/main-app-37f5ebd0a8525cd1.js" as
ync=""></script><script src="/_next/static/chunks/1a258343-4af2572c60ed5a11.js" async=""></script><script
src="/_next/static/chunks/5772-c866a9dc01ed8c7e.js" async=""></script><script src="/_next/static/chunks/1
23-dbeedc6db2b64376.js" async=""></script><script src="/_next/static/chunks/2652-e43e2..., url:
https://9router.proai.lol/responses

Add v1 to endpoint:

export OPENAI_BASE_URL="https://9router.proai.lol/v1"
export OPENAI_API_KEY="your-9router-api-key"

Response:

{"error":{"message":"No credentials for provider:
openai","type":"invalid_request_error","code":"bad_request"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions