Commit Graph

102 Commits

Author SHA1 Message Date
sigoden
6fdaabf9a8
refactor: fetch html as markdown (#723) 2024-07-17 18:30:05 +08:00
sigoden
4edf14fbbd
chore: release v0.19.0 (#643) 2024-07-04 07:13:29 +08:00
sigoden
d193950d20
refactor: the name of temp file (#670) 2024-06-29 13:20:00 +08:00
sigoden
f82524fd15
feat: implement native rag url loader (#660) 2024-06-27 12:30:09 +08:00
sigoden
95bad975f4
feat: custom rag document loaders (#650) 2024-06-26 08:18:58 +08:00
sigoden
2eab71a641
feat: rag hybrid search (#618) 2024-06-20 11:26:45 +08:00
sigoden
492b006db7
refactor: load pdf/docx files (#592) 2024-06-12 17:07:49 +08:00
sigoden
bb867c4fcb
feat: support bot (#579)
* feat: support bots

* refactor with RoleLike

* improve exiting session

* make bot works with rag

* refactor repl assert state

* add bot banner

* repl complete bots according bots.txt

* fix on windows

* remove threadpool executing function callings

* adjust repl left_prompt

* move bot config to global config.yaml

* `.bot` throw err if funciton callings is not configured
2024-06-11 11:00:12 +08:00
sigoden
1ec6abfaee
feat: support RAG (#560)
* feat: support RAG

* support more embeddings models and implement concurrent embedding api

* show the progress of addings paths

* ignore embedding context when saving message

* embedding model max_chunk_size => default_chunk_size

* support pdf and pandoc formats (docx, epub, ipynb)
2024-06-05 09:02:23 +08:00
sigoden
71f2e94579
refactor: switch to bitflags State (#557) 2024-06-02 19:27:41 +08:00
sigoden
38797e3264
chore: release v0.18.0 (#551) 2024-06-01 10:45:53 +08:00
sigoden
5458150ed3
fix: json stream parser and refine client modules (#538) 2024-05-23 19:28:56 +08:00
sigoden
ba3bcfd67c
feat: allow patching req body with client config (#534) 2024-05-22 21:29:23 +08:00
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
2024-05-18 19:06:21 +08:00
sigoden
a75aef459d
feat: remove tiktoken (#506) 2024-05-14 15:02:58 +08:00
sigoden
154c1e0b4b
chore: release v0.17.0 (#497) 2024-05-14 06:36:10 +08:00
sigoden
c4c948a54c chore: update deps 2024-05-01 00:02:41 +00:00
sigoden
1f2b626703
feat: support bedrock client (#450) 2024-04-28 11:27:06 +08:00
sigoden
0a4c0413ef
feat: serve all LLMs as OpenAI-compatible API (#431) 2024-04-24 07:16:56 +08:00
sigoden
1cc89eff51
refactor: more async code (#427) 2024-04-23 14:32:06 +08:00
sigoden
8ab57ed74e
refactor: update description for cli options and config fields (#423) 2024-04-20 21:07:30 +08:00
sigoden
a3f63a5e04
chore: release v0.16.0 (#404) 2024-04-11 08:34:18 +08:00
sigoden
8feaf2a93d refactor: adjust client order 2024-04-10 23:54:38 +00:00
sigoden
26ad75c005 chore: update readme and description 2024-04-09 22:41:22 +00:00
sigoden
3a0cafebd9 chore: update description 2024-04-08 13:58:08 +00:00
sigoden
ccc5f864f1 chore: update readme and project description 2024-04-08 12:43:08 +00:00
sigoden
78d6e1b1e0
chore: release v0.15.0 (#387)
* chore: release v0.15.0

* add arm/armv7 releases

* update deps
2024-04-07 22:02:05 +08:00
sigoden
84695b62c6 chore: update deps 2024-03-30 02:44:25 +00:00
sigoden
601288029d chore: update description and readme 2024-03-11 10:48:54 +00:00
sigoden
c3677e3380
chore: release v0.14.0 (#341) 2024-03-07 23:25:54 +08:00
sigoden
f65c18886b chore: update description 2024-03-06 02:34:44 +00:00
sigoden
32ce76e4d1 chore: update deps 2024-03-06 01:52:26 +00:00
sigoden
b82ae88a15 chore: update project description and README 2024-03-06 01:32:00 +00:00
sigoden
aec1b707af chore: release v0.13.0 2024-02-25 12:27:30 +00:00
sigoden
21d1be5bed
refactor: improve prompt error handling (#319) 2024-02-24 19:13:48 +08:00
sigoden
16b7ac071f chore: update deps and readme 2024-02-23 08:07:56 +00:00
sigoden
6c0204e696
refactor: change header of messages saved to markdown (#317) 2024-02-22 11:39:22 +08:00
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
2024-01-13 19:52:07 +08:00
sigoden
665f7ff4b9
fix: copy on linux wayland (#288) 2023-12-28 21:52:45 +08:00
sigoden
0bda6af4dc chore: release v0.12.0 2023-12-26 00:28:19 +00:00
sigoden
1bb28665f7 chore: update readme and deps 2023-12-20 23:21:17 +00:00
sigoden
6280f5ab4b
feat: qianwen vision models support embeded images (#277) 2023-12-20 11:29:52 +08:00
sigoden
e4d301f3d7
fix: pipe failed on macos (#264) 2023-12-08 07:42:47 +08:00
sigoden
075631d794 chore: release v0.11.0 2023-11-29 11:00:00 +08:00
sigoden
0afef991f9 chore: update cli description and readme 2023-11-27 18:02:52 +08:00
sigoden
25e545474f
chore: upgrade deps (#250) 2023-11-27 14:20:02 +08:00
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
2023-11-27 14:04:50 +08:00
sigoden
542dcfe6f6
feat: extend .read to support files and messages (#242) 2023-11-13 19:53:24 +08:00
sigoden
01cf8acb81
refactor: improve code quanity (#238) 2023-11-08 22:20:46 +08:00
sigoden
a8a504e0f0 chore: release v0.10.0 2023-11-08 11:46:30 +08:00