Skip to content

Commit

Permalink
fix: can not pass params option
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyu committed Sep 26, 2024
1 parent 3f6bcc9 commit dfded56
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/auto-gen-prompt-by-claude.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ description: |-
input:
- task
- params
prompt:
add_generation_prompt: false
---
system: |-
Today you will be writing instructions to an eager, helpful, but inexperienced and unworldly AI assistant who needs careful instruction and examples to understand how best to behave. I will explain a task to you. You will write instructions that will direct the assistant on how best to accomplish the task consistently, accurately, and correctly.
Expand Down Expand Up @@ -485,8 +487,10 @@ system: |-
Note: If you want the AI to output its entire response or parts of its response inside certain tags, specify the name of these tags (e.g. "write your answer inside <answer> tags") but do not include closing tags or unnecessary open-and-close tag sections.
assistant: |-
<Inputs>
{%- if params -%}{% for param in params %}
{${{param}}}
{% endfor %}{%fi%}
{% if params %}
{% for param in params %}
{${{ param }}}
{% endfor %}
{% endif %}
</Inputs>
<Instructions Structure>

0 comments on commit dfded56

Please sign in to comment.