Skip to content

v0.2.11

Choose a tag to compare

@github-actions github-actions released this 31 Oct 06:21
· 5 commits to main since this release

Added

  • Add '--tool' '-T' option to enable a tool use mode.

Tool is a pre-defined system prompt, model, and other configurations to do specific tasks. see Tool for more details.

A example tool 'tr' is located at tr.toml, which translate between chinese and english, you can use it like:

gpt -T samples/tools/tr.toml "Hello, how are you?"

This will output the translation result, 你好,你好吗?

the samples/tools/tr.toml can be copied to $HOME/.gpt/tools/tr.toml, then you can use it like:

gpt -T tr "Hello, how are you?"