Skip to content

fix(auth): apply verify= to Codex OAuth /models probe - #15049

Merged
teknium1 merged 1 commit into
mainfrom
fix/codex-models-verify
Apr 24, 2026
Merged

fix(auth): apply verify= to Codex OAuth /models probe#15049
teknium1 merged 1 commit into
mainfrom
fix/codex-models-verify

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #14533 — applies _resolve_requests_verify() to the one requests.get() site that PR missed: the Codex OAuth chatgpt.com/backend-api/codex/models probe in agent/model_metadata.py (L1053).

Keeps all seven requests.get() callsites in that module consistent — HERMES_CA_BUNDLE / REQUESTS_CA_BUNDLE / SSL_CERT_FILE are now honored everywhere, including Codex context-length probing on macOS Homebrew Python.

Changes

  • agent/model_metadata.py: add verify=_resolve_requests_verify() to the Codex /models probe call.

Validation

  • py_compile clean.
  • grep 'verify=_resolve_requests_verify' agent/model_metadata.py → 5 matches (one per call site, including the shared _verify local covering the /v1/props + /props pair).

Follow-up to PR #14533 — applies the same _resolve_requests_verify()
treatment to the one requests.get() site the PR missed (Codex OAuth
chatgpt.com /models probe). Keeps all seven requests.get() callsites
in model_metadata.py consistent so HERMES_CA_BUNDLE / REQUESTS_CA_BUNDLE /
SSL_CERT_FILE are honored everywhere.
@teknium1
teknium1 merged commit f58a16f into main Apr 24, 2026
11 of 12 checks passed
@teknium1
teknium1 deleted the fix/codex-models-verify branch April 24, 2026 10:02
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint area/auth Authentication, OAuth, credential pools provider/copilot GitHub Copilot (ACP + Chat) labels Apr 24, 2026
nekorytaylor666 pushed a commit to nekorytaylor666/hermes-agent that referenced this pull request Apr 24, 2026
…5049)

Follow-up to PR NousResearch#14533 — applies the same _resolve_requests_verify()
treatment to the one requests.get() site the PR missed (Codex OAuth
chatgpt.com /models probe). Keeps all seven requests.get() callsites
in model_metadata.py consistent so HERMES_CA_BUNDLE / REQUESTS_CA_BUNDLE /
SSL_CERT_FILE are honored everywhere.

Co-authored-by: teknium1 <teknium@hermes-agent>
justrhoto pushed a commit to justrhoto/hermes-agent that referenced this pull request Apr 24, 2026
…5049)

Follow-up to PR NousResearch#14533 — applies the same _resolve_requests_verify()
treatment to the one requests.get() site the PR missed (Codex OAuth
chatgpt.com /models probe). Keeps all seven requests.get() callsites
in model_metadata.py consistent so HERMES_CA_BUNDLE / REQUESTS_CA_BUNDLE /
SSL_CERT_FILE are honored everywhere.

Co-authored-by: teknium1 <teknium@hermes-agent>
aj-nt pushed a commit to aj-nt/hermes-agent that referenced this pull request May 1, 2026
…5049)

Follow-up to PR NousResearch#14533 — applies the same _resolve_requests_verify()
treatment to the one requests.get() site the PR missed (Codex OAuth
chatgpt.com /models probe). Keeps all seven requests.get() callsites
in model_metadata.py consistent so HERMES_CA_BUNDLE / REQUESTS_CA_BUNDLE /
SSL_CERT_FILE are honored everywhere.

Co-authored-by: teknium1 <teknium@hermes-agent>
donald131 pushed a commit to donald131/hermes-agent that referenced this pull request May 2, 2026
…5049)

Follow-up to PR NousResearch#14533 — applies the same _resolve_requests_verify()
treatment to the one requests.get() site the PR missed (Codex OAuth
chatgpt.com /models probe). Keeps all seven requests.get() callsites
in model_metadata.py consistent so HERMES_CA_BUNDLE / REQUESTS_CA_BUNDLE /
SSL_CERT_FILE are honored everywhere.

Co-authored-by: teknium1 <teknium@hermes-agent>
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…5049)

Follow-up to PR NousResearch#14533 — applies the same _resolve_requests_verify()
treatment to the one requests.get() site the PR missed (Codex OAuth
chatgpt.com /models probe). Keeps all seven requests.get() callsites
in model_metadata.py consistent so HERMES_CA_BUNDLE / REQUESTS_CA_BUNDLE /
SSL_CERT_FILE are honored everywhere.

Co-authored-by: teknium1 <teknium@hermes-agent>
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…5049)

Follow-up to PR NousResearch#14533 — applies the same _resolve_requests_verify()
treatment to the one requests.get() site the PR missed (Codex OAuth
chatgpt.com /models probe). Keeps all seven requests.get() callsites
in model_metadata.py consistent so HERMES_CA_BUNDLE / REQUESTS_CA_BUNDLE /
SSL_CERT_FILE are honored everywhere.

Co-authored-by: teknium1 <teknium@hermes-agent>
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
…5049)

Follow-up to PR NousResearch#14533 — applies the same _resolve_requests_verify()
treatment to the one requests.get() site the PR missed (Codex OAuth
chatgpt.com /models probe). Keeps all seven requests.get() callsites
in model_metadata.py consistent so HERMES_CA_BUNDLE / REQUESTS_CA_BUNDLE /
SSL_CERT_FILE are honored everywhere.

Co-authored-by: teknium1 <teknium@hermes-agent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/auth Authentication, OAuth, credential pools comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint P2 Medium — degraded but workaround exists provider/copilot GitHub Copilot (ACP + Chat) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants