Skip to content

chore: update model-to-API mapping (2026-07-05)#5917

Merged
lpcox merged 3 commits into
mainfrom
chore/update-model-api-mapping-2026-07-05-37b236e2314e525f
Jul 5, 2026
Merged

chore: update model-to-API mapping (2026-07-05)#5917
lpcox merged 3 commits into
mainfrom
chore/update-model-api-mapping-2026-07-05-37b236e2314e525f

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates docs/model-api-mapping.json with the latest model-to-API endpoint mappings sourced from the OpenAI and Anthropic Python SDKs.

Changes

  • gpt-5-pro-*: Added dated variant pattern (e.g. gpt-5-pro-2025-10-06) — this snapshot model ID is in the OpenAI SDK ResponsesModel type but was not matched by the existing exact-match gpt-5-pro entry.
  • o4-mini-deep-research-*: Added dated variant pattern (e.g. o4-mini-deep-research-2025-06-26) — same reason.
  • lastUpdated: Bumped to 2026-07-05T06:27:39Z.

Sources consulted

  • OpenAI Python SDK main: src/openai/types/shared/chat_model.py and src/openai/types/shared_params/responses_model.py
  • Anthropic Python SDK main: src/anthropic/types/model_param.py — all existing Anthropic patterns already cover current models; no changes needed.

No entries removed

All previous model families are preserved; no confirmed deprecations.

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • awmgmcpg
  • developers.openai.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"
    - "developers.openai.com"

See Network Configuration for more information.

Generated by 🗺️ Model API Mapping Updater · 59.6 AIC · ⌖ 9.4 AIC · ⊞ 5K ·

- Add gpt-5-pro-* dated variant pattern (e.g. gpt-5-pro-2025-10-06)
- Add o4-mini-deep-research-* dated variant pattern (e.g. o4-mini-deep-research-2025-06-26)
- Update lastUpdated timestamp

Both patterns were added to the OpenAI Python SDK (ResponsesModel) but were
missing wildcard coverage for dated snapshot variants in the mapping file.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the documentation model-to-endpoint mapping used by the project to describe which provider endpoint (OpenAI Responses vs Chat Completions, Anthropic Messages) is expected for particular model families.

Changes:

  • Bumped lastUpdated timestamp in the mapping reference.
  • Expanded OpenAI model patterns to include dated/snapshot variants for gpt-5-pro-* and o4-mini-deep-research-*.
  • Clarified notes to mention dated variant examples.
Show a summary per file
File Description
docs/model-api-mapping.json Updates documented model pattern coverage and refreshes the mapping timestamp.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment on lines 59 to +62
"family": "gpt-5-codex/pro",
"patterns": ["gpt-5-codex", "gpt-5-pro"],
"patterns": ["gpt-5-codex", "gpt-5-pro", "gpt-5-pro-*"],
"endpoints": ["responses"],
"notes": "Responses API only for gpt-5-codex and gpt-5-pro (ResponsesOnlyModel)."
"notes": "Responses API only for gpt-5-codex and gpt-5-pro (ResponsesOnlyModel). Includes dated variants like gpt-5-pro-2025-10-06."
@lpcox

lpcox commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

@copilot address review feedback

Done — containers/api-proxy/model-api-mapping.json is now in sync with docs/model-api-mapping.json (same lastUpdated, gpt-5-pro-*, and o4-mini-deep-research-* patterns). Commit: chore: sync containers/api-proxy/model-api-mapping.json with docs version.

Copilot AI requested a review from lpcox July 5, 2026 12:56
Copilot finished work on behalf of lpcox July 5, 2026 12:56
@lpcox lpcox marked this pull request as ready for review July 5, 2026 13:15
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

✅ Copilot review passed with no inline comments.

@github-actions[bot] Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation build failed for this PR. View logs.

Built from commit 5c27cf7

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Claude passed

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

🔌 Smoke Services — All services reachable! ✅

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Security Guard failed. Please review the logs for details.

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Gemini completed. All facets verified. 💎

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Contribution Check completed successfully!

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Build Test Suite completed successfully!

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Chroot tests failed Smoke Chroot failed - See logs for details.

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 98.72% 98.76% 📈 +0.04%
Statements 98.64% 98.68% 📈 +0.04%
Functions 99.58% 99.58% ➡️ +0.00%
Branches 94.69% 94.69% ➡️ +0.00%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/workdir-setup.ts 93.2% → 94.9% (+1.69%) 93.2% → 94.9% (+1.69%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox

lpcox commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

@copilot fix failing ci check

Copilot AI commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

@copilot fix failing ci check

The model-api-mapping.test.js had a hardcoded expected lastUpdated of "2026-07-04T06:17:12Z" — updated it to match the new timestamp "2026-07-05T06:27:39Z". Fixed in fix: update expected lastUpdated in model-api-mapping test.

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot BYOK (Direct) Mode ✅ PASS

  • ✅ GitHub.com connectivity: HTTP 200
  • ✅ File write/read: /tmp/gh-aw/agent/smoke-test-copilot-byok.txt
  • ✅ BYOK inference: Direct mode via api-proxy → api.githubcopilot.com

Running with COPILOT_PROVIDER_API_KEY forwarded to sidecar. Agent holds placeholder; real credential injected by api-proxy.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

🔑 BYOK report filed by Smoke Copilot BYOK
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the clear PR description and for keeping the runtime and docs mapping files in sync. One contribution-guideline item looks missing: CONTRIBUTING.md asks contributors to "Write tests for new functionality" under Contributing Code > Code Style, and repeats that PRs should "Include tests for new functionality" under Pull request requirements.

Because these new wildcard patterns change model endpoint routing behavior, please add or update a test that covers the new dated IDs, such as gpt-5-pro-2025-10-06 and o4-mini-deep-research-2025-06-26, resolving to the Responses API.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by Contribution Check for #5917 · 54.1 AIC · ⊞ 20.9K ·
Add label ready-for-aw to run again

Copilot finished work on behalf of lpcox July 5, 2026 13:20
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: PAT Auth — PASS ✅

Test Result
GitHub MCP connectivity
GitHub.com HTTP ⚠️ pre-step vars unexpanded
File write/read ⚠️ pre-step vars unexpanded

Auth mode: PAT (COPILOT_GITHUB_TOKEN)

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

🔑 PAT report filed by Smoke Copilot PAT
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Services Connectivity

  • Redis PING: ❌ Network is unreachable
  • PostgreSQL pg_isready: ❌ No response
  • PostgreSQL SELECT 1: ❌ Network is unreachable

Overall: FAIL

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

🔌 Service connectivity validated by Smoke Services
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Claude Engine Validation

Check Result
API Status ✅ PASS
GH Check ✅ PASS
File Status ✅ PASS

Overall Result: PASS

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by Smoke Claude for #5917 · 55.7 AIC · ⊞ 3.3K ·
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test Results\n\n| Test | Status |\n|------|--------|\n| GitHub MCP Connectivity | ✅ |\n| GitHub.com HTTP | ✅ |\n| File Write/Read | ✅ |\n\nOverall: PASS @lpcox

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

@lpcox
GitHub MCP Testing (titles: ${{ steps.smoke-data.outputs.SMOKE_PR_DATA }}): ✅

github.com connectivity: ✅

file write/read: ✅

BYOK inference: ✅

Running in direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) authenticated via Microsoft Entra

Overall: PASS

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

🪪 BYOK (AOAI Entra) report filed by Smoke Copilot BYOK AOAI (Entra)
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

🔬 Smoke Test: API Proxy OpenTelemetry Tracing

Scenario Result Details
S1: Module Loading otel.js loads cleanly; exports: startRequestSpan, setTokenAttributes, setBudgetAttributes, endSpan, endSpanError, shutdown, isEnabled + test-only helpers
S2: Test Suite 59/59 tests pass across otel.test.js + otel-fanout.test.js (0 failures)
S3: Env Var Forwarding src/services/api-proxy-env-config.ts forwards GH_AW_OTLP_ENDPOINTS, OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_HEADERS, GITHUB_AW_OTEL_TRACE_ID, GITHUB_AW_OTEL_PARENT_SPAN_ID, OTEL_SERVICE_NAME
S4: Token Tracker Integration onUsage callback present in token-tracker-http.js — OTEL hook point confirmed
S5: OTEL Diagnostics FileSpanExporter used as fallback (writes to /var/log/api-proxy/otel.jsonl); ProxyAwareOtlpExporter routes through Squid for live runs

All 5 scenarios pass. OTEL tracing integration is functional.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

📡 OTel tracing validated by Smoke OTel Tracing
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Gemini Smoke Test Results

  • GitHub MCP: ❌
  • Connectivity: ❌
  • File Writing: ✅
  • Bash Tool: ✅

Overall Status: FAIL

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • localhost

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "localhost"

See Network Configuration for more information.

💎 Faceted by Smoke Gemini
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia 1/1 passed ✅ PASS
Bun hono 1/1 passed ✅ PASS
C++ fmt N/A ✅ PASS
C++ json N/A ✅ PASS
Deno oak N/A 1/1 passed ✅ PASS
Deno std N/A 1/1 passed ✅ PASS
.NET hello-world N/A ✅ PASS
.NET json-parse N/A ✅ PASS
Go color 1/1 passed ✅ PASS
Go env 1/1 passed ✅ PASS
Go uuid 1/1 passed ✅ PASS
Java gson 1/1 passed ✅ PASS
Java caffeine 1/1 passed ✅ PASS
Node.js clsx passed ✅ PASS
Node.js execa passed ✅ PASS
Node.js p-limit passed ✅ PASS
Rust fd 1/1 passed ✅ PASS
Rust zoxide 1/1 passed ✅ PASS

Overall: 8/8 ecosystems passed — ✅ PASS

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by Build Test Suite for #5917 · 41.7 AIC · ⊞ 6.9K ·
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author
  • chore: sync containers/api-proxy/model-api-mapping.json with docs version
  • refactor(api-proxy): centralize auth-header construction in shared helpers
  • PR list query: ❌
  • GitHub reads / discussion lookup: ❌
  • Build: ✅
  • Overall status: FAIL

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

🔮 The oracle has spoken through Smoke Codex
Add label ready-for-aw to run again

@lpcox lpcox merged commit 06e5c77 into main Jul 5, 2026
24 checks passed
@lpcox lpcox deleted the chore/update-model-api-mapping-2026-07-05-37b236e2314e525f branch July 5, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants