summaryrefslogtreecommitdiffstats
path: root/src/config/role.rs
AgeCommit message (Collapse)AuthorLines
2024-05-22refactor: rename `function_filter` to `function_matcher` (#535)sigoden-4/+4
2024-05-18refactor: shell detect/prompt (#519)sigoden-11/+4
2024-05-18feat: support function calling (#514)sigoden-28/+36
* feat: support function calling * fix on Windows OS * implement multi-steps function calling * fix on Windows OS * add error for client not support function calling * refactor message data structure and make claude client supporting function calling * support reuse previous call results * improve error handling for function calling * use prefix `may_` as indicator for `execute` type fucntions
2024-05-14feat: allow binding model to the role (#505)sigoden-1/+9
2024-05-11refactor: list roles includeing builtin roles (#499)sigoden-55/+45
2024-05-09refactor: refine detect code blocksigoden-0/+2
2024-05-09feat: enhence roles with messages (#495)sigoden-12/+122
2024-04-24feat: support customizing `top_p` parameter (#434)sigoden-3/+9
2024-04-20feat: add `.prompt` repl command (#420)sigoden-0/+9
2024-04-14feat: make built-in roles selectable and rename them (#412)sigoden-21/+23
2024-04-12refactor: hide sytem roles from repl tab-completion (#407)sigoden-8/+10
2024-03-27refactor: seperate temperature from role/session (#378)sigoden-0/+4
2024-03-22refactor: do not automatically convert temperature value (#368)sigoden-1/+1
2024-03-07feat: add nushell integration (#344)sigoden-5/+12
2024-03-04feat: compress session automaticlly (#333)sigoden-1/+1
* feat: compress session automaticlly * non-block * update field description * set compress_threshold * update session::clear_messages * able to override session compress_threshold * enable compress_threshold by default * make session compress_threshold optional
2024-03-03feat: allow overriding execute/code role (#331)sigoden-4/+8
2024-03-02feat: add `-c/--code` to generate only code (#327)sigoden-2/+16
2024-03-02refactor: enhanced shell support (#326)sigoden-6/+6
2024-02-25refactor: improve saving messages (#322)sigoden-2/+2
2024-02-23feat: support `-e/--execute` to execute shell command (#318)sigoden-1/+37
2023-11-27feat: support vision (#249)sigoden-12/+13
* feat: support vision * clippy * implement vision * resolve data url to local file * add model openai:gpt-4-vision-preview * use newline to concate embeded text files * set max_tokens for gpt-4-vision-preview
2023-11-14refactor: trim trailing spaces from the role prompt (#246)sigoden-2/+2
2023-11-02refactor: improve code quanity (#197)sigoden-1/+1
- move model_info.rs/message.rs to clients/ - rename SharedConfig to GlobalConfig
2023-11-02refactor: improve code quanity (#196)sigoden-1/+1
- rewrite Repl, remove ReplHandler - move ReplyStreamHandler to repl/ and rename it to ReplyHandler - deprecate utils::print_now - refactor session info
2023-10-30chore: spellchecksigoden-3/+3
2023-10-30feat: deprecate prompt, remove `--prompt` and `.prompt` (#176)sigoden-13/+0
2023-10-30feat: show role info with `--role <name> --info` (#175)sigoden-0/+7
2023-10-28feat: enhance session/conversation (#162)sigoden-3/+3
* feat: enhance session/conversation * updates * updates * cut version v0.9.0-rc2 * add .session name completion
2023-07-10fix: minor code cleanup and pedantic lints (#134)Anthony Rubick-1/+1
2023-03-13feat: support role args (#69)sigoden-5/+42
* 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
2023-03-10feat: type `{` `[` `(` to enter multi-line editing mode (#58)sigoden-1/+1
Abandon `.editor` command, it's too complicated.
2023-03-09refactor: optimize counting tokens (#53)sigoden-22/+3
2023-03-09feat: support two types of role prompts (#52)sigoden-0/+89
1. embeded prompt use __INPUT__ placeholder will generate one user message when send to gpt ``` - name: shell prompt: > I want you to act as a linux shell expert. Q: How to unzip a file A: unzip file.zip Q: __INPUT__ A: ``` 2. system prompt no __INPUT__ placeholder will generate on system message and one user message when send to gpt ``` - name: shell prompt: | I want you to act as a linux shell expert. I want you to answer only with bash code. Do not write explanations. ```