add opus 4.8 and script to append models to the top#9723
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR updates the LLM model sync workflow so newly discovered models are inserted at the top of existing provider sections, and adds the latest synced model entries to the catalog.
Changes:
- Renames the existing document merge helper from append-oriented wording to insert-oriented wording.
- Prepends newly synced models before curated provider entries while preserving blank-line formatting.
- Adds new Anthropic, Bedrock, and opencode-go model entries and updates the sync test expectation.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
packages/llm-info/src/sync-models.ts |
Changes existing-section insertion to prepend new model entries. |
packages/llm-info/src/__tests__/sync-models.test.ts |
Updates the sync test to assert prepended ordering. |
packages/llm-info/data/models.yml |
Adds new model catalog entries near the top of their provider sections. |
There was a problem hiding this comment.
2 issues found across 3 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/llm-info/data/models.yml">
<violation number="1" location="packages/llm-info/data/models.yml:214">
P2: Missing non-global variant for Claude Opus 4.8 in bedrock. Opus 4.7 has both `anthropic.claude-opus-4-7` and `global.anthropic.claude-opus-4-7`. Only the global variant was added for Opus 4.8. If the non-global variant is also available, add it.</violation>
</file>
Architecture diagram
sequenceDiagram
participant Dev as Developer
participant Script as syncModels CLI
participant API as Models Dev API
participant Parser as YAML Parser
participant File as models.yml
Note over Dev,File: NEW model registration flow
Dev->>Script: run syncModels()
Script->>API: fetch latest models
API-->>Script: model definitions list
Script->>Script: filter & cap new entries per provider
alt has existing YAML file
Script->>Parser: parse existing models.yml
Parser-->>Script: YAML document tree
Script->>Script: insertIntoDocument()
Note over Script: prepend new models to each <br/>provider section (not append)
Script->>Script: build YAML map nodes
Script->>Script: preserve blank line between <br/>new block and curated entries
Script->>File: write updated YAML
else fresh file
Script->>Script: renderFresh()
Script->>File: write complete YAML
end
File-->>Dev: updated models.yml with new models at top
Note over Dev,File: Example: anthropic gets Claude Opus 4.8 <br/>prepended above existing Opus 4.7
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
|
||
| bedrock: | ||
|
|
||
| - name: Claude Opus 4.8 (Global) |
There was a problem hiding this comment.
P2: Missing non-global variant for Claude Opus 4.8 in bedrock. Opus 4.7 has both anthropic.claude-opus-4-7 and global.anthropic.claude-opus-4-7. Only the global variant was added for Opus 4.8. If the non-global variant is also available, add it.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/llm-info/data/models.yml, line 214:
<comment>Missing non-global variant for Claude Opus 4.8 in bedrock. Opus 4.7 has both `anthropic.claude-opus-4-7` and `global.anthropic.claude-opus-4-7`. Only the global variant was added for Opus 4.8. If the non-global variant is also available, add it.</comment>
<file context>
@@ -199,6 +210,17 @@ google:
bedrock:
+
+ - name: Claude Opus 4.8 (Global)
+ model: global.anthropic.claude-opus-4-8
+ description: "Modest but tangible improvement over Claude Opus 4.7"
</file context>
There was a problem hiding this comment.
didn't add it for now. Could see if users want that too. The global variant is the most available for all regions.
There was a problem hiding this comment.
Thanks for the context—understood.
📝 Summary
Used to append at the bottom of each provider, now push to the top
📋 Pre-Review Checklist
✅ Merge Checklist