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

fix: fixed dotprompt history #1301

Merged
merged 2 commits into from
Nov 14, 2024
Merged

fix: fixed dotprompt history #1301

merged 2 commits into from
Nov 14, 2024

Conversation

pavelgj
Copy link
Collaborator

@pavelgj pavelgj commented Nov 14, 2024

const hi = ai.definePrompt({
    name: 'hi',
    input: {
      schema: z.object({
        name: z.string(),
      }),
    },
  },
  '{{ history}} hi {{ name }}'
);
await hi(
  { name: 'Genkit' },
  {
    messages: [
      { role: 'user', content: [{ text: 'hi' }] },
      { role: 'model', content: [{ text: 'bye' }] },
    ],
  }
)

@pavelgj pavelgj requested review from mbleigh and apascal07 November 14, 2024 18:02
@pavelgj pavelgj merged commit 4e53051 into main Nov 14, 2024
4 checks passed
@pavelgj pavelgj deleted the pj/fixDotpromptHistory branch November 14, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants