Skip to content
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

feat(js/ai): allow disabling native constrained generation and enabling custom instruction #1962

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

pavelgj
Copy link
Collaborator

@pavelgj pavelgj commented Feb 13, 2025

    const { output } = await generate(registry, {
      prompt: 'generate json',
      output: {
        constrained: false,
        instructions: true,
        schema: z.object({
          foo: z.string(),
        }),
      },
    });

Checklist (if applicable):

@github-actions github-actions bot added the js label Feb 13, 2025
@pavelgj pavelgj requested a review from mbleigh February 13, 2025 22:33
@pavelgj pavelgj mentioned this pull request Feb 15, 2025
5 tasks
@yesudeep yesudeep linked an issue Feb 15, 2025 that may be closed by this pull request
5 tasks
@pavelgj pavelgj merged commit f494b0e into main Feb 18, 2025
7 checks passed
@pavelgj pavelgj deleted the pj/constrainedInstructions branch February 18, 2025 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[JS] Tests fail with node 23.
2 participants