Skip to content

chore: update model-to-API mapping (2026-07-01)#5742

Merged
lpcox merged 2 commits into
mainfrom
chore/update-model-api-mapping-2026-07-01-337ce95b0b5275dc
Jul 1, 2026
Merged

chore: update model-to-API mapping (2026-07-01)#5742
lpcox merged 2 commits into
mainfrom
chore/update-model-api-mapping-2026-07-01-337ce95b0b5275dc

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

Updates docs/model-api-mapping.json with model families verified from official provider documentation (Anthropic docs + OpenAI/LiteLLM model index) as of 2026-07-01.

Changes

OpenAI — 2 new families

Family Pattern Endpoint Notes
gpt-5.1 gpt-5.1* responses Responses API only. Includes codex, codex-max, codex-mini variants. Was missing between gpt-5.2 and base gpt-5.
gpt-4.5 gpt-4.5* chat_completions Preview model, chat completions only. Was not covered by any existing pattern.

Anthropic — 2 new families

Family Pattern Endpoint Notes
claude-sonnet-5 claude-sonnet-5* messages New generation; best combination of speed and intelligence, 1M context window. Confirmed in official Anthropic models docs.
claude-mythos-5 claude-mythos-5*, claude-mythos-preview* messages Invitation-only model (Project Glasswing), limited availability. Released June 9, 2026 alongside claude-fable-5.

Metadata

  • lastUpdated bumped to 2026-07-01T08:18:06Z

Sources

Warning

Firewall blocked 1 domain

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

  • developers.openai.com

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

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

See Network Configuration for more information.

Generated by 🗺️ Model API Mapping Updater · 63.5 AIC · ⌖ 18.1 AIC · ⊞ 5.2K ·

Add new model families discovered from official provider docs:

OpenAI:
- gpt-5.1*: responses-only (codex, codex-max, codex-mini variants)
- gpt-4.5*: chat_completions only (preview model)

Anthropic:
- claude-sonnet-5: new generation, messages endpoint, 1M ctx
- claude-mythos-5: invitation-only (Project Glasswing), messages endpoint

Update lastUpdated timestamp to 2026-07-01T08:18:06Z.

Sources:
- https://docs.anthropic.com/en/docs/about-claude/models
- https://platform.openai.com/docs/models

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

This PR updates the model family → API endpoint reference mapping to reflect newly documented OpenAI and Anthropic model families as of 2026-07-01.

Changes:

  • Bumps lastUpdated to 2026-07-01T08:18:06Z.
  • Adds OpenAI families gpt-5.1 (responses-only) and gpt-4.5 (chat completions only).
  • Adds Anthropic families claude-mythos-5 and claude-sonnet-5 (messages API).
Show a summary per file
File Description
docs/model-api-mapping.json Updates the documented model-family patterns and endpoint mappings, plus refreshes the lastUpdated 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

"title": "Model-to-API Endpoint Mapping",
"description": "Maps AI model families to their supported API endpoints. Used to determine which endpoint (chat/completions vs responses vs messages) a model requires.",
"lastUpdated": "2026-06-30T04:00:00Z",
"lastUpdated": "2026-07-01T08:18:06Z",
@lpcox

lpcox commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@copilot address review feedback

Addressed in ebc6d92 — I synced containers/api-proxy/model-api-mapping.json with the updated docs mapping and tightened model-api-mapping.test.js so the bundled runtime mapping now asserts the new families and exact lastUpdated value.

Copilot finished work on behalf of lpcox July 1, 2026 18:55
Copilot AI requested a review from lpcox July 1, 2026 18:55
@github-actions

github-actions Bot commented Jul 1, 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 1, 2026

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation build failed for this PR. View logs.

Built from commit 5c286e3

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

🔌 Smoke Services — All services reachable! ✅

@github-actions

github-actions Bot commented Jul 1, 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 1, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Gemini completed. All facets verified. 💎

Testing safeoutputs

@github-actions

github-actions Bot commented Jul 1, 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 1, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Contribution Check completed successfully!

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.

@github-actions

github-actions Bot commented Jul 1, 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 1, 2026

Copy link
Copy Markdown
Contributor Author

Security Guard failed. Please review the logs for details.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Claude passed

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Coverage Regression Detected

This PR decreases test coverage. Please add tests to maintain coverage levels.

Overall Coverage

Metric Base PR Delta
Lines 98.65% 98.68% 📈 +0.03%
Statements 98.53% 98.57% 📈 +0.04%
Functions 99.55% 99.55% ➡️ +0.00%
Branches 94.48% 94.46% 📉 -0.02%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/compose-generator.ts 99.0% → 99.1% (+0.03%) 97.2% → 97.3% (+0.08%)
src/workdir-setup.ts 92.7% → 94.5% (+1.82%) 92.7% → 94.5% (+1.82%)

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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Build Test Suite completed successfully!

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for keeping the model mapping current. I noticed one contribution-guideline gap to address before merge:

  • Tests for new functionality: CONTRIBUTING.md asks contributors to “write tests for new functionality” / “include tests for new functionality.” This PR adds four model families, but the updated tests cover only gpt-5.1 and claude-sonnet-5. Please add coverage for the new gpt-4.5 and claude-mythos-5 / claude-mythos-preview mappings as well.

The PR description is clear, docs/mapping files are updated, and the changed files appear to be in the expected locations.

Generated by Contribution Check for #5742 · 42 AIC · ⊞ 21.7K ·
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 1, 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

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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

🔥 Smoke Test Results — Auth mode: PAT (COPILOT_GITHUB_TOKEN)

Test Result
GitHub MCP connectivity
GitHub.com connectivity (HTTP 200)
File write/read

Overall: PASS

cc @lpcox

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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Smoke Test Results

PR: chore: update model-to-API mapping (2026-07-01) · @github-actions[bot] · reviewer: @lpcox

Test Result
GitHub MCP
HTTP Connectivity ❓ template vars unresolved
File Write/Read ❓ template vars unresolved

Overall: ⚠️ PARTIAL — Pre-step outputs were not substituted into the prompt.

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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot BYOK (Direct)

✅ GitHub MCP connectivity
✅ github.com HTTP 200
✅ File write/read (/tmp/gh-aw/agent/)
✅ BYOK inference via api-proxy → api.githubcopilot.com

Status: PASS
Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY) via api-proxy sidecar.

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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@lpcox
GitHub MCP: ✅
GitHub.com: ✅
File I/O: ✅
BYOK inference: ✅
Running direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw)
Overall: PASS

🪪 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 1, 2026

Copy link
Copy Markdown
Contributor Author

@github-actions[bot] Direct BYOK mode (COPILOT_PROVIDER_API_KEY + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw)

  • fix: ensure chmod runs even when chown fails in rootless permission repair: ✅
  • refactor: split 309-line generateDockerCompose into focused phases: ✅
  • GitHub.com connectivity: ✅
  • File I/O test: ✅
  • BYOK inference test: ✅

Overall: PASS

🔑 BYOK (AOAI api-key) report filed by Smoke Copilot BYOK AOAI (api-key)
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: GitHub Actions Services Connectivity

Check Result
Redis PING ❌ timeout (exit 124)
PostgreSQL pg_isready ❌ no response
PostgreSQL SELECT 1 ❌ timeout (exit 124)

Overall: FAILhost.docker.internal services are not reachable from this runner environment.

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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Chroot Version Comparison Results

Runtime Host Version Chroot Version Match?
Python Python 3.12.13 Python 3.12.3 ❌ No
Node.js v24.17.0 v22.23.0 ❌ No
Go go1.22.12 go1.22.12 ✅ Yes

Result: 1/3 runtimes matched. Python and Node.js versions differ between host and chroot environments.

Tested by Smoke Chroot
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Reviewed PRs: fix: sysroot filter should not drop workspace custom mounts
Reviewed PRs: fix: filter split-fs-invisible mounts when sysroot-stage is active (arc-dind)
Tests: merged PRs ✅ | GitHub query ✅ | Playwright ✅ | file write ✅ | discussion query ✅ | build ✅
Overall: PASS

Warning

Firewall blocked 1 domain

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

  • registry.npmjs.org

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

network:
  allowed:
    - defaults
    - "registry.npmjs.org"

See Network Configuration for more information.

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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

🔍 Smoke Test: API Proxy OpenTelemetry Tracing

Scenario Result Details
1. Module Loading ✅ Pass otel.js loads successfully; exports: startRequestSpan, setTokenAttributes, setBudgetAttributes, endSpan, endSpanError, shutdown, isEnabled + internal test helpers
2. Test Suite ✅ Pass 59 tests passing (39 in otel.test.js + 20 in otel-fanout.test.js); covers span creation, token attributes, exporters, fan-out, and graceful degradation
3. Env Var Forwarding ✅ Pass 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, and OTEL_SERVICE_NAME to the api-proxy container
4. Token Tracker Integration ✅ Pass onUsage callback exists in token-tracker-http.js (line 283/324); invokes setTokenAttributes to attach gen_ai.usage.* attributes to spans
5. OTEL Diagnostics ✅ Pass Graceful degradation confirmed — when no OTLP endpoint is configured, spans fall back to FileSpanExporter writing to /var/log/api-proxy/otel.jsonl; no errors thrown

Summary: All 5 scenarios pass. OTEL tracing integration is fully functional with correct GenAI semantic conventions, parent context propagation, fan-out export, and graceful no-op degradation when unconfigured.

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

@github-actions

github-actions Bot commented Jul 1, 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 All passed ✅ PASS
Node.js execa All passed ✅ PASS
Node.js p-limit All passed ✅ PASS
Rust fd 1/1 passed ✅ PASS
Rust zoxide 1/1 passed ✅ PASS

Overall: 8/8 ecosystems passed — ✅ PASS

Notes
  • Java: Maven local repository defaulted to ~/.m2/repository which was root-owned in this environment. Resolved by configuring <localRepository>/tmp/gh-aw/agent/m2-repo</localRepository> in settings.xml.

Generated by Build Test Suite for #5742 · 41 AIC · ⊞ 7.8K ·
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test Results

  • GitHub MCP Testing: ❌ (Tools not found)
  • GitHub.com Connectivity: ❌ (SSL Error 35)
  • File Writing Testing: ✅
  • Bash Tool Testing: ✅

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

@lpcox lpcox merged commit da14858 into main Jul 1, 2026
87 of 89 checks passed
@lpcox lpcox deleted the chore/update-model-api-mapping-2026-07-01-337ce95b0b5275dc branch July 1, 2026 19:32
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