-
Notifications
You must be signed in to change notification settings - Fork 3.5k
v0.6.24: copilot feedback wiring, captcha fixes #3944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
b0cb95b
feat: mothership/copilot feedback (#3940)
emir-karabeg 893e322
fix(envvars): restore workflowUserId fallback for scheduled execution…
waleedlatif1 4a9439e
improvement(models): tighten model metadata and crawl discovery (#3942)
waleedlatif1 c2b12cf
fix(captcha): use getResponsePromise for Turnstile execute-on-submit …
waleedlatif1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| import { describe, expect, it } from 'vitest' | ||
| import { buildModelCapabilityFacts, getEffectiveMaxOutputTokens, getModelBySlug } from './utils' | ||
waleedlatif1 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| describe('model catalog capability facts', () => { | ||
| it.concurrent( | ||
| 'shows structured outputs support and published max output tokens for gpt-4o', | ||
| () => { | ||
| const model = getModelBySlug('openai', 'gpt-4o') | ||
|
|
||
| expect(model).not.toBeNull() | ||
| expect(model).toBeDefined() | ||
|
|
||
| const capabilityFacts = buildModelCapabilityFacts(model!) | ||
| const structuredOutputs = capabilityFacts.find((fact) => fact.label === 'Structured outputs') | ||
| const maxOutputTokens = capabilityFacts.find((fact) => fact.label === 'Max output tokens') | ||
|
|
||
| expect(getEffectiveMaxOutputTokens(model!.capabilities)).toBe(16384) | ||
| expect(structuredOutputs?.value).toBe('Supported') | ||
| expect(maxOutputTokens?.value).toBe('16k') | ||
| } | ||
| ) | ||
|
|
||
| it.concurrent('preserves native structured outputs labeling for claude models', () => { | ||
| const model = getModelBySlug('anthropic', 'claude-sonnet-4-6') | ||
|
|
||
| expect(model).not.toBeNull() | ||
| expect(model).toBeDefined() | ||
|
|
||
| const capabilityFacts = buildModelCapabilityFacts(model!) | ||
| const structuredOutputs = capabilityFacts.find((fact) => fact.label === 'Structured outputs') | ||
|
|
||
| expect(structuredOutputs?.value).toBe('Supported (native)') | ||
| }) | ||
|
|
||
| it.concurrent('does not invent a max output token limit when one is not published', () => { | ||
| expect(getEffectiveMaxOutputTokens({})).toBeNull() | ||
| }) | ||
|
|
||
| it.concurrent('keeps best-for copy for clearly differentiated models only', () => { | ||
| const researchModel = getModelBySlug('google', 'deep-research-pro-preview-12-2025') | ||
| const generalModel = getModelBySlug('xai', 'grok-4-latest') | ||
|
|
||
| expect(researchModel).not.toBeNull() | ||
| expect(generalModel).not.toBeNull() | ||
|
|
||
| expect(researchModel?.bestFor).toContain('research workflows') | ||
| expect(generalModel?.bestFor).toBeUndefined() | ||
| }) | ||
| }) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.