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
Sorry if this is naive (it probably is, I'm less than a week into using aichat), but I think it would be useful to be able to use YAML anchors and aliases. This is the usecase I had in mind:
- name: &code_generator
prompt: code_generator
Your answer must only executable code.
Do not answer with fenced code block.
The first line of your answer must contain a she-bang.
Provide explanations in comments.
- name: bash
prompt: bash generator <<: *code_generator
Your answer must only be executable Bash code
- name: python
prompt: python generator <<: *code_generator
Your answer must only be executable Python code
Basically I have a set of requirements that I ask aichat when generating code in any programming language. I'd like to be able to have these requirements be inherited by specific language roles, which would allow me to tweak the wording of only the code_generator if I want to change how all of the languages are generated.
I can just keep copy/pasting the common requirements though. What do you think?
The text was updated successfully, but these errors were encountered:
Sorry if this is naive (it probably is, I'm less than a week into using aichat), but I think it would be useful to be able to use YAML anchors and aliases. This is the usecase I had in mind:
Basically I have a set of requirements that I ask aichat when generating code in any programming language. I'd like to be able to have these requirements be inherited by specific language roles, which would allow me to tweak the wording of only the code_generator if I want to change how all of the languages are generated.
I can just keep copy/pasting the common requirements though. What do you think?
The text was updated successfully, but these errors were encountered: