Commit Graph

68 Commits (main)

Author SHA1 Message Date
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
2 days ago
sigoden 7762cd6bed
refactor: model pass_max_tokens (#493) 2 weeks ago
sigoden 956a960390
feat: support zhipuai client (#491) 2 weeks ago
sigoden 0071d84aa5
feat: support deepseek client (#490) 2 weeks ago
sigoden 9b283024b4
feat: extract vertexai-claude client (#485) 2 weeks ago
sigoden 82a9ef024d
refactor: aware of lowercase https_proxy/all_proxy (#484) 2 weeks ago
sigoden 5eae392dbd
refactore: add models for openai-compatible platforms (#471) 3 weeks ago
sigoden 83ca74bf8a chore: minor refinement 3 weeks ago
sigoden 8dba46becf
feat: openai-compatible platforms share the same client (#469) 3 weeks ago
sigoden 50eac8b594
feat: support replicate client (#466) 3 weeks ago
sigoden ffb0af8236
refactor: add some openai-compatiable platforms to config.example.yaml (#464) 3 weeks ago
sigoden 4d1c53384b
refactor: prompts for generating config file (#463) 3 weeks ago
sigoden 3a00fb283e refactor: user config models replace client builtin models 3 weeks ago
sigoden 34041a976c
feat: support cloudflare client (#459) 3 weeks ago
sigoden 72d1e5958d chore: add openai-compatible platforms to config.example.yaml 3 weeks ago
sigoden 212ff1674e refactor: minor improvements
- config.example.yaml comments
- `--serve` description
- No model error
3 weeks ago
sigoden 7bda1eace2
refactor: rename ollama config field api_key => api_auth (#453) 3 weeks ago
sigoden 338b0438dc
feat: run without config file by set `AICHAT_CLIENT_TYPE` (#452) 3 weeks ago
sigoden 1f2b626703
feat: support bedrock client (#450) 3 weeks ago
sigoden 615bab215b
feat: support vertexai claude (#439) 3 weeks ago
sigoden a21e1213cc
feat: support perplexity (#444) 4 weeks ago
sigoden 503ec98bd1
feat: support moonshot again (#442) 4 weeks ago
sigoden 29a4ffd514
feat: support groq (#441) 4 weeks ago
sigoden b62e8e1625 refactor: update ollama chat_endpoint in example config file 4 weeks ago
sigoden a17f349daa
feat: support customizing `top_p` parameter (#434) 4 weeks ago
sigoden d1aafa1115
feat: customize model's max_output_tokens (#428) 4 weeks ago
sigoden 8ab57ed74e
refactor: update description for cli options and config fields (#423) 1 month ago
sigoden 8b806db857
feat: ctrlc won't exit repl and remove `ctrlc_exit` config (#419) 1 month ago
sigoden 5d7c786b7f
feat: remove moonshot client (#418) 1 month ago
sigoden b9bde15c1f
feat: add config `buffer_editor` (#417) 1 month ago
sigoden 4a88a3da04
refactor: `ctrlc_exit` config default to false (#403) 1 month ago
sigoden 5915bc2f3a
feat: support cohere (#397) 1 month ago
sigoden 2738988fc4
feat: add `ctrlc_exit` option to control REPL exit by ctrl+c (#391) 1 month ago
sigoden bd9a6a8725
feat: `save_session` config item can be null (#380) 2 months ago
sigoden 8da9fa5f4c
feat: add sepereate `save_session` config item to session (#377) 2 months ago
Patrick Jackson 582f56e915
feat: add `save_session` config item and `--save-session` cli option (#370)
* fix: sessions should save when exiting

* feat: improve save sessions

* feat: do not allow saving the temp session name

* feat: allow creating a session without interactive use

* feat: add `save_session` config and `--save-session` option

---------

Co-authored-by: sigoden <sigoden@gmail.com>
2 months ago
sigoden 7f05dc1a4a
feat: support customizing gemini safeSettings (#375) 2 months ago
sigoden 0ebc7955da
refactor: improve creating config for openai-compatible client (#374) 2 months ago
sigoden eec041c111
feat: rename client localai to openai-compatible (#373)
BREAKING CHANGE: rename client localai to openai-compatible
2 months ago
sigoden 774d991144
feat: support moonshot (#369) 2 months ago
sigoden 527da63d18
refactor: do not automatically convert temperature value (#368) 2 months ago
sigoden d5b10ea0c1 chore: fix typos 2 months ago
sigoden 8e5d4e55b1
refactor: rename model's `max_tokens` to `max_input_tokens` (#339)
BREAKING CHANGE: rename model's `max_tokens` to `max_input_tokens`
3 months ago
sigoden 3f693ea060
feat: compress session automaticlly (#333)
* 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
3 months ago
sigoden 75fe0b9205
feat: support mistral (#324) 3 months ago
sigoden c538533014
feat: support claude (#278) 3 months ago
sigoden 179a5f5749
refactor: update vertexai/gemini/ernie clients (#309) 3 months ago
sigoden 5e4210980d
feat: support vertexai (#308) 3 months ago
Kelvie Wong 176ff6f83e
feat: add `extra_fields` to models of localai/ollama clients (#298)
* Add an "extra_fields" config to localai models

Because there are so many local AIs out there with a bunch of custom
parameters you can set, this allows users to send in extra parameters to
a local LLM runner, such as, e.g. `instruction_template: Alpaca`, so
that Mixtral can take a system prompt.

* support ollama

---------

Co-authored-by: sigoden <sigoden@gmail.com>
4 months ago
sigoden a30c3cc4c1
feat: add openai.api_base config (#302) 4 months ago