mirror of
https://github.com/sigoden/aichat
synced 2024-11-18 09:28:27 +00:00
9c04455e36
* feat: support role args We can use role args to pass some additional arguments to the prompt. ``` - name: convert:json:yaml prompt: convert __ARG1__ below to __ARG2__ ``` `:json:yaml` is `role args`. It has two args: - arg1 `json`, it will replace __ARG1__ in prompt - arg2 `yaml`, it will replace __ARG2__ in prompt ``` 〉.role convert:json:yaml name: convert:json:yaml prompt: convert json below to yaml temperature: null 〉.role convert:yaml:json name: convert:yaml:json prompt: convert yaml below to json temperature: null ``` different role args, will generate different prompts. * small updates |
||
---|---|---|
.. | ||
config | ||
render | ||
repl | ||
utils | ||
cli.rs | ||
client.rs | ||
main.rs | ||
term.rs |