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

Include model in options for executable prompts #1142

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

MichaelDoyle
Copy link
Member

@MichaelDoyle MichaelDoyle commented Oct 30, 2024

When wrapping prompt actions as ExecutablePrompt, we need to include the model in the options. This is because the PromptAction returns GenerateRequest, which in turn does not actually include model. This is particularly a problem for dotprompt files.

Checklist (if applicable):

  • Tested (manually, unit tested, etc.)
  • [NA] Docs updated

cc @pavelgj

Fixes #1119

js/genkit/src/genkit.ts Outdated Show resolved Hide resolved
@MichaelDoyle MichaelDoyle force-pushed the executable-prompt-model branch from 6ad272d to b39768a Compare October 30, 2024 13:16
@MichaelDoyle
Copy link
Member Author

Updated per @pavelgj and added a bit more color to the comments in the code to describe more clearly what is happening.

@MichaelDoyle MichaelDoyle changed the title Include model in options for esecutable prompts Include model in options for executable prompts Oct 30, 2024
@MichaelDoyle MichaelDoyle merged commit 47dffa9 into next Oct 30, 2024
4 checks passed
@MichaelDoyle MichaelDoyle deleted the executable-prompt-model branch October 30, 2024 18:12
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.

3 participants