You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than loading the prompt, you will see the error:
Error: dotprompt: NOT_FOUND: Could not find 'random-recipe.wacky.prompt' in the prompts folder.
Expected behavior
I would expect behaviour as per the documents, which is that the random-recipe.prompt file is loaded as a fallback and then executed.
Additional context
I'd be happy to pick this up with a bit of guidance on expectations around behaviour.
The text was updated successfully, but these errors were encountered:
Describe the bug
The Prompt Variants section of the documentation for
.prompt
files states:However, it seems that this is not the case and, looking at the registry file, there doesn't seem to be any logic to attempt to load a file without the variant when a variant has been used. I'm looking in particular at
maybeLoadPrompt
but I've looked around related areas too: https://github.com/firebase/genkit/blob/main/js/plugins/dotprompt/src/registry.tsTo Reproduce
Create a prompt file with the following name:
Then try to load the prompt with the following set up:
Rather than loading the prompt, you will see the error:
Expected behavior
I would expect behaviour as per the documents, which is that the
random-recipe.prompt
file is loaded as a fallback and then executed.Additional context
I'd be happy to pick this up with a bit of guidance on expectations around behaviour.
The text was updated successfully, but these errors were encountered: