Commit Graph

19 Commits (71f2e94579511d7524f5534377001ab3f02a9597)

Author SHA1 Message Date
sigoden 571d1022f6
refactor: rename some client structs and methods (#555)
* rename `Completeion*` to `ChatCompletions*`

* rename `send_message*` to `chat_completions*`

* rename `request_builder` to `chat_completions_builder`

* rename `build_body` to `build_chat_completions_body`

* rename `extract_completion` to `extract_chat_completions`

* format

* remove unused config fields
4 months ago
sigoden 54a837784c
refactor: rename `SendData` to `CompletionData` (#553) 4 months ago
sigoden 50b13d2de9
refactor: rename `function_filter` to `function_matcher` (#535) 4 months ago
sigoden b4a40e3fed
feat: support function calling (#514)
* 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
4 months ago
sigoden a75aef459d
feat: remove tiktoken (#506) 5 months ago
sigoden 79d0bba640
feat: allow binding model to the role (#505) 5 months ago
sigoden 5284a18248
refactor: config::Input (#503) 5 months ago
sigoden 1e8fc5d269
refactor: list roles includeing builtin roles (#499) 5 months ago
sigoden e7fa6c5a20 refactor: improve code quality 5 months ago
sigoden 38e594505b
feat: shell commands support revision (#413) 6 months ago
sigoden 664ac813aa
refactor: include filepaths if attaching multple text files (#389) 6 months ago
sigoden 992d570041
refactor: cleanup the deprecated repl commands (#355) 7 months ago
sigoden aed243c3aa
feat: allow use of temporary role in a session (#348) 7 months ago
sigoden c773e8d2e1
refactor: improve saving messages (#322) 7 months ago
sigoden 6c0204e696
refactor: change header of messages saved to markdown (#317) 7 months ago
sigoden fe35cfd941
feat: supports model capabilities (#297)
1. automatically switch to the model that has the necessary capabilities.
2. throw an error if the client does not have a model with the necessary capabilities
9 months ago
sigoden 6280f5ab4b
feat: qianwen vision models support embeded images (#277) 9 months ago
sigoden 27cae9582f
fix: cannot read image with uppercase ext (#270) 10 months ago
sigoden 35c75506e2
feat: support vision (#249)
* 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
10 months ago