Skip to content

chore: update model-to-API mapping (2026-07-03) - #5860

Merged
lpcox merged 3 commits into
mainfrom
chore/update-model-api-mapping-2026-07-03-1c66e7d3b8fd873b
Jul 3, 2026
Merged

chore: update model-to-API mapping (2026-07-03)#5860
lpcox merged 3 commits into
mainfrom
chore/update-model-api-mapping-2026-07-03-1c66e7d3b8fd873b

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

Summary

Updates docs/model-api-mapping.json with new OpenAI and Anthropic model entries identified from official provider SDKs.

Changes

OpenAI — new model families added (sourced from openai-python SDK):

  • o3-pro / o3-deep-research → responses only (in ResponsesModel but not ChatModel)
  • o1-pro → responses only (same)
  • computer-use-preview → responses only (specialized computer-use model)
  • codex-mini (e.g. codex-mini-latest) → both endpoints (in ChatModel)
  • Clarified o1 and o3 family notes to distinguish from their responses-only sub-variants

Anthropic — notes update:

  • claude-opus-4 family notes now include claude-opus-4-1 (found in anthropic-python SDK model_param.py)

Metadata:

  • lastUpdated bumped to 2026-07-03T06:21:01Z

Data sources

  • OpenAI: openai-python SDK — src/openai/types/shared/chat_model.py and src/openai/types/shared_params/responses_model.py
  • Anthropic: anthropic-python SDK — src/anthropic/types/model_param.py and Anthropic docs page model table

Validation

  • JSON is well-formed (validated with python3 -c 'import json; json.load(open(...))').
  • 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 · 79.1 AIC · ⌖ 9.34 AIC · ⊞ 5K ·

- Add o3-pro and o3-deep-research (responses only)
- Add o1-pro (responses only)
- Add computer-use-preview (responses only)
- Add codex-mini family (both endpoints)
- Update claude-opus-4 notes to include claude-opus-4-1
- Clarify o1/o3 notes to distinguish from responses-only variants
- Bump lastUpdated timestamp

Sources: openai-python SDK shared_params/responses_model.py,
         shared/chat_model.py, anthropic-python SDK types/model_param.py

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lpcox
lpcox marked this pull request as ready for review July 3, 2026 12:22
Copilot AI review requested due to automatic review settings July 3, 2026 12:22

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-endpoint reference mapping used to document which provider API endpoints (OpenAI chat/responses, Anthropic messages) are supported by each model family.

Changes:

  • Added new OpenAI model-family entries (e.g., o3-pro/deep-research, o1-pro, computer-use-preview, codex-mini) and clarified o1/o3 family notes.
  • Updated Anthropic claude-opus-4 notes to include claude-opus-4-1.
  • Bumped lastUpdated metadata timestamp.
Show a summary per file
File Description
docs/model-api-mapping.json Adds/clarifies model-family → endpoint mappings and updates metadata 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-07-02T22:45:35Z",
"lastUpdated": "2026-07-03T06:21:01Z",
@lpcox

lpcox commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

@copilot address review feedback

Fixed in the latest commit — containers/api-proxy/model-api-mapping.json is now synced with docs/model-api-mapping.json (same new entries: o3-pro/deep-research, o1-pro, computer-use-preview, codex-mini, and the claude-opus-4-1 note update).

Copilot finished work on behalf of lpcox July 3, 2026 12:51
Copilot AI requested a review from lpcox July 3, 2026 12:51
@github-actions

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

Copy link
Copy Markdown
Contributor Author

Smoke Claude passed

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

🔌 Smoke Services — All services reachable! ✅

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Gemini completed. All facets verified. 💎

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation build failed for this PR. View logs.

Built from commit 063f75c

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Contribution Check completed successfully!

PR #5860 follows the applicable CONTRIBUTING.md guidelines based on the provided metadata, diff, and contribution guide; no review comment needed.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Build Test Suite completed successfully!

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK AOAI (Entra) reports failed. AOAI BYOK (Entra) mode investigation needed...

@github-actions

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

Copy link
Copy Markdown
Contributor Author

Security Guard failed. Please review the logs for details.

@github-actions

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

Copy link
Copy Markdown
Contributor Author

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 98.59% 98.64% 📈 +0.05%
Statements 98.52% 98.57% 📈 +0.05%
Functions 99.43% 99.43% ➡️ +0.00%
Branches 94.32% 94.37% 📈 +0.05%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/workdir-setup.ts 93.0% → 94.8% (+1.74%) 93.0% → 94.8% (+1.74%)
src/host-iptables-chain.ts 97.6% → 100.0% (+2.39%) 97.6% → 100.0% (+2.39%)
✨ New Files (1 files)
  • src/services/credentials/provider-credential-isolation.ts: 100.0% lines

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

@github-actions

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

@github-actions github-actions Bot mentioned this pull request Jul 3, 2026
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot BYOK (Direct) Mode ✅

Status: PASS

  • ✅ BYOK inference: Agent → api-proxy sidecar → api.githubcopilot.com (COPILOT_PROVIDER_API_KEY route)
  • ✅ Prompt received and processed successfully
  • ✅ Running in direct BYOK mode

Ready for validation.

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

Copy link
Copy Markdown
Contributor Author

🔥 Smoke Test Results

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

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

Copy link
Copy Markdown
Contributor Author

Smoke Test: Services Connectivity

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

Overall: FAILhost.docker.internal (172.17.0.1) is not reachable from this runner.

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

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot PAT Auth — PASS

Test Result
MCP Connectivity
GitHub.com HTTP ✅ HTTP 200
File Write/Read ✅ Verified

Auth mode: PAT (COPILOT_GITHUB_TOKEN) | Run: 28663868074

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

Copy link
Copy Markdown
Contributor Author

Smoke Test: PASS
Merged PRs: #5857 fix: drop workDir-adjacent chroot-home mount on split-fs sysroot; #5856 chore: fix 3 moderate CVEs via dep updates (2026-07-03)
GitHub query: ✅
Page title: ✅
File write: ✅
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 3, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Gemini Engine Validation

  • GitHub MCP: Review last 2 merged PRs ✅
    • fix: drop workDir-adjacent chroot-home mount on split-fs sysroot
    • chore: fix 3 moderate CVEs via dep updates (2026-07-03)
  • GitHub.com Connectivity: curl 200 ✅
  • File Writing: /tmp/gh-aw/agent/smoke-test-gemini-28663868120.txt ✅
  • Bash Tool Testing: File verification successful ✅

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 3, 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 #5860 · 45.1 AIC · ⊞ 6.9K ·
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: API Proxy OpenTelemetry Tracing

Scenario Status Notes
Module Loading ✅ Pass otel.js loads successfully; exports: startRequestSpan, setTokenAttributes, setBudgetAttributes, endSpan, endSpanError, shutdown, isEnabled
Test Suite ✅ Pass 59/59 tests pass across 2 suites (otel.test.js, otel-fanout.test.js)
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
Token Tracker Integration ✅ Pass token-tracker-http.js exposes onUsage callback (line 283/374) as the OTEL hook point; onSpanEnd callback triggers span end after token finalization
OTEL Diagnostics ✅ Pass Graceful degradation confirmed: falls back to FileSpanExporter writing to /var/log/api-proxy/otel.jsonl when no OTLP endpoint is configured

All 5 scenarios passed. OTEL tracing integration is functioning correctly — span creation, GenAI semantic convention attributes (gen_ai.usage.input_tokens, gen_ai.usage.output_tokens), parent context propagation via GITHUB_AW_OTEL_TRACE_ID/GITHUB_AW_OTEL_PARENT_SPAN_ID, fan-out OTLP export via GH_AW_OTLP_ENDPOINTS, and graceful no-op degradation are all verified.

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

Copy link
Copy Markdown
Contributor Author

Smoke Test - Direct BYOK Mode:

  • Pre-fetched PR data validated ✅
  • GitHub.com connectivity ✅
  • File I/O test ✅
  • BYOK inference test ✅

Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw)

Overall: PASS

cc @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.

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

@lpcox

lpcox commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

@copilot fix failing ci checks

Copilot AI commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

@copilot fix failing ci checks

Fixed in the latest commit — model-api-mapping.test.js had a hardcoded last_updated assertion (2026-07-02T22:45:35Z) that no longer matched the updated timestamp (2026-07-03T06:21:01Z). Updated the test to match.

Copilot finished work on behalf of lpcox July 3, 2026 14:51
@lpcox
lpcox merged commit 94c4b75 into main Jul 3, 2026
24 checks passed
@lpcox
lpcox deleted the chore/update-model-api-mapping-2026-07-03-1c66e7d3b8fd873b branch July 3, 2026 15:24
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