Skip to content

chore: update model-to-API mapping (2026-07-04)#5895

Merged
lpcox merged 3 commits into
mainfrom
chore/update-model-api-mapping-2026-07-04-9f69e4449c3ce01e
Jul 5, 2026
Merged

chore: update model-to-API mapping (2026-07-04)#5895
lpcox merged 3 commits into
mainfrom
chore/update-model-api-mapping-2026-07-04-9f69e4449c3ce01e

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

Summary

Updates docs/model-api-mapping.json with the latest model-to-API endpoint mappings verified against official provider documentation.

Changes

OpenAI

  • Added chatgpt-4o-latest as a separate entry. This model exists in OpenAI's ModelIdsShared schema (supports both /v1/chat/completions and /v1/responses), but was not covered by the existing gpt-4o* glob pattern because its name starts with chatgpt- not gpt-4o.
  • Updated gpt-4o family notes to mention audio and search preview variants.

Anthropic

  • No changes needed. All current models (opus-4-8, sonnet-4-6, haiku-4-5, sonnet-5, fable-5, mythos-5) are covered by existing patterns.

Metadata

  • Bumped lastUpdated to 2026-07-04T06:17:12Z.

Sources

  • OpenAI: https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml (verified ModelIdsShared and ResponsesOnlyModel enums)
  • Anthropic: https://docs.anthropic.com/en/docs/about-claude/models/overview and /model-ids-and-versions

Verification

  • JSON is well-formed (validated with python3).
  • chatgpt-4o-latest now matches its new entry pattern.
  • No existing entries removed.

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 · 147.8 AIC · ⌖ 9.18 AIC · ⊞ 5K ·

- Add chatgpt-4o-latest entry (in ModelIdsShared, supports both
  chat_completions and responses endpoints; not matched by gpt-4o* glob
  due to chatgpt- prefix)
- Update gpt-4o notes to mention audio and search preview variants
- Bump lastUpdated to 2026-07-04T06:17:12Z

Sources:
- OpenAI: https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml
- Anthropic: https://docs.anthropic.com/en/docs/about-claude/models/overview

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lpcox lpcox requested a review from Copilot July 4, 2026 13:07
@lpcox lpcox marked this pull request as ready for review July 4, 2026 13:08

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 model-to-API endpoint reference mapping used for documenting (and reflecting) which OpenAI model families support /v1/chat/completions vs /v1/responses, with a focus on ensuring chatgpt-4o-latest is correctly classified.

Changes:

  • Bumped lastUpdated timestamp to 2026-07-04T06:17:12Z.
  • Added an explicit chatgpt-4o-latest mapping entry (chat_completions + responses).
  • Expanded gpt-4o notes to mention audio and search preview variants.
Show a summary per file
File Description
docs/model-api-mapping.json Updates OpenAI model-family mappings and metadata (adds chatgpt-4o-latest, refreshes notes, bumps lastUpdated).

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-07-03T06:21:01Z",
"lastUpdated": "2026-07-04T06:17:12Z",
@lpcox

lpcox commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

@copilot address review feedback

Done — containers/api-proxy/model-api-mapping.json has been synced with the docs copy in the latest commit: added the chatgpt-4o-latest entry, updated the gpt-4o notes, and bumped lastUpdated to 2026-07-04T06:17:12Z. Both files are now identical.

Copilot finished work on behalf of lpcox July 4, 2026 13:31
Copilot AI requested a review from lpcox July 4, 2026 13:31
@github-actions

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

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation build failed for this PR. View logs.

Built from commit e273198

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Build Test Suite completed successfully!

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK reports failed. BYOK mode investigation needed...

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions

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

Copy link
Copy Markdown
Contributor Author

Smoke Gemini completed. All facets verified. 💎

Testing safeoutputs

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Contribution Check completed successfully!

PR #5895 follows the applicable CONTRIBUTING.md guidelines; no contribution-guidelines comment needed.

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Claude passed

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

🔌 Smoke Services — All services reachable! ✅

@github-actions

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

Copy link
Copy Markdown
Contributor Author

Security Guard failed. Please review the logs for details.

@github-actions

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

Copy link
Copy Markdown
Contributor Author

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

@github-actions

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

Copy link
Copy Markdown
Contributor Author

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 98.59% 98.63% 📈 +0.04%
Statements 98.52% 98.55% 📈 +0.03%
Functions 99.44% 99.44% ➡️ +0.00%
Branches 94.34% 94.34% ➡️ +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

@github-actions

github-actions Bot commented Jul 4, 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 #5895 · 35.6 AIC · ⊞ 3.3K ·
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test Results

Test Status
MCP Connectivity
GitHub.com HTTP ✅ 200
File Write/Read ⚠️ Template vars unresolved in CI

Overall: PASS

Author: @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 4, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot PAT Auth — PASS

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

Overall: PASS | 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 4, 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: FAILhost.docker.internal is not reachable from this runner environment. Service containers may not be configured or the host DNS alias is not available.

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 4, 2026

Copy link
Copy Markdown
Contributor Author

Smoke test results:

  • Merged PRs: Runner Doctor Updater: add cache-memory restore fallback key; fix: propagate config fields to all layers ✅
  • PR query: chore: upgrade gh-aw to v0.82.2 pre-release and recompile workflows; [Test Coverage] Branch coverage for container-stop, config-file, and main-action ✅
  • GitHub title check: GitHub · Change is constant. GitHub keeps you ahead. · GitHub ✅
  • File write/read: smoke-test-codex-28707838784.txt ✅
  • Build: npm ci && npm run build ✅
  • Overall: PASS

Warning

Firewall blocked 2 domains

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

  • awmgmcpg
  • registry.npmjs.org

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

network:
  allowed:
    - defaults
    - "awmgmcpg"
    - "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 4, 2026

Copy link
Copy Markdown
Contributor Author

🔍 Smoke Test: API Proxy OpenTelemetry Tracing

Scenario Result Notes
Scenario 1: Module Loading ✅ Pass otel.js loads successfully; exports: startRequestSpan, setTokenAttributes, endSpan, endSpanError, shutdown, isEnabled
Scenario 2: Test Suite ✅ Pass 59 tests passed, 0 failed across otel.test.js and otel-fanout.test.js
Scenario 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, OTEL_SERVICE_NAME
Scenario 4: Token Tracker Integration ✅ Pass onUsage callback exists in token-tracker-http.js (lines 283, 324, 374) as the OTEL hook point
Scenario 5: OTEL Diagnostics ✅ Pass FileSpanExporter fallback active (no OTLP endpoint configured); graceful degradation confirmed

All 5 scenarios passed. 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 4, 2026

Copy link
Copy Markdown
Contributor Author

@lpcox

  • MCP connectivity (pre-fetched PR data): ✅
  • GitHub.com connectivity: ✅
  • File write/read test: ❌
  • BYOK inference test: ✅

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: 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.

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

Copy link
Copy Markdown
Contributor Author

Smoke Test Results

  • GitHub MCP Testing: ✅
    • "Runner Doctor Updater: add cache-memory restore fallback key"
    • "fix: propagate config fields to all layers"
  • GitHub.com Connectivity: ✅
  • File Writing Testing: ✅
  • Bash Tool Testing: ✅

Overall Status: PASS

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 4, 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

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 #5895 · 36.1 AIC · ⊞ 6.9K ·
Add label ready-for-aw to run again

@lpcox

lpcox commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Copilot AI commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

@copilot fix this failing ci check https://github.com/github/gh-aw-firewall/actions/runs/28707785859/job/85136357818?pr=5895

Fixed — model-api-mapping.test.js had the old lastUpdated timestamp (2026-07-03T06:21:01Z) hardcoded in the reflect test. Updated it to 2026-07-04T06:17:12Z to match the updated mapping. All 18 tests in that suite now pass.

Copilot finished work on behalf of lpcox July 4, 2026 13:52
@lpcox lpcox merged commit df339b7 into main Jul 5, 2026
24 checks passed
@lpcox lpcox deleted the chore/update-model-api-mapping-2026-07-04-9f69e4449c3ce01e branch July 5, 2026 03:03
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.

4 participants