Skip to content

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