1087 Commits

Author SHA1 Message Date
Kerollmops
ef0f877bb9
Update chat keys 2025-05-30 16:07:44 +02:00
Kerollmops
85c20447e0
Make the chats settings and chat completions route experimental 2025-05-30 16:07:44 +02:00
Clément Renault
0f75ae9f25
Implement a first version of a streamed chat API 2025-05-30 16:07:44 +02:00
Clément Renault
11ace7f209
Introduce the first version of the /chat route that mimics the OpenAI API 2025-05-30 16:07:44 +02:00
Kerollmops
6959b01aa5
Implement deserr on ChatCompletions settings structs 2025-05-30 16:07:02 +02:00
Kerollmops
358abf662e
Better chat completions settings management 2025-05-30 16:07:02 +02:00
Kerollmops
5bb0714c5f
Introduce listing/getting/deleting/updating chat workspace settings 2025-05-30 16:07:01 +02:00
Kerollmops
7e42293a23
Implement useful conversion strategies and clean up the code 2025-05-30 16:07:01 +02:00
Clément Renault
8c66e63760
Clean up the code a bit 2025-05-30 16:07:00 +02:00
Clément Renault
5d8cdb075b
Factorize the code a bit more and support reporting errors 2025-05-30 16:07:00 +02:00
Clément Renault
fa139ee601
Report the sources 2025-05-30 16:07:00 +02:00
Kerollmops
f635a8f9f3
Fix compilation error in test 2025-05-30 16:06:59 +02:00
Clément Renault
807157b8cd
Call specific tools to show progression and results. 2025-05-30 16:06:59 +02:00
Clément Renault
ca5a87a606
Introduce a lot of search parameters and make Deserr happy 2025-05-30 16:06:59 +02:00
Clément Renault
bf3286ba41
Expose a well defined set of sources 2025-05-30 16:06:58 +02:00
Clément Renault
1e67a47a8f
Add the index descriptions to the function description 2025-05-30 16:06:58 +02:00
Clément Renault
7bfb7b7d58
redact the chat settings API key 2025-05-30 16:06:58 +02:00
Clément Renault
1eb8249a51
Better chat settings management 2025-05-30 16:06:57 +02:00
Clément Renault
f9ecb0ff31
Correctly list the chat settings key actions 2025-05-30 16:06:57 +02:00
Clément Renault
723f1b13a0
Always use the frequency matching strategy 2025-05-30 16:06:56 +02:00
Clément Renault
97d74bd2b9
Correctly support document templates on the chat API 2025-05-30 16:06:50 +02:00
Clément Renault
39ecea5e9e
Introduce the new index chat settings 2025-05-30 16:06:50 +02:00
Clément Renault
d389e49147
Make sure errorneous calls are handled and forwarded to the LLM 2025-05-30 16:06:49 +02:00
Clément Renault
971249c59c
Catch invalid argument calls to search function 2025-05-30 16:06:49 +02:00
Clément Renault
d6f2bd9b57
Support multiple indexes and not only main 2025-05-30 16:06:49 +02:00
Clément Renault
14c8e5cb56
Limit the number of internal loop calls and change the function name 2025-05-30 16:06:48 +02:00
Clément Renault
1159af1219
Correctly support tenant tokens and filters 2025-05-30 16:06:48 +02:00
Clément Renault
0fcc7e1377
Stream errors 2025-05-30 16:06:48 +02:00
Clément Renault
a074384d69
Stop the stream when the connexion stops and chnage the events 2025-05-30 16:06:47 +02:00
Clément Renault
bc7e4598db
Generate a new default chat API key 2025-05-30 16:06:47 +02:00
Clément Renault
487002f2f0
Change the /chat route to /chat/completions to be OpenAI-compatible 2025-05-30 16:06:47 +02:00
Clément Renault
a51579e923
Better stop the stream 2025-05-30 16:06:46 +02:00
Clément Renault
afadfa420a
Update the streaming detection to work with Mistral 2025-05-30 16:06:46 +02:00
Clément Renault
116fbb4c24
Make it compatible with the Mistral API 2025-05-30 16:06:46 +02:00
Clément Renault
64fe283abc
Support base_api in the settings 2025-05-30 16:06:45 +02:00
Clément Renault
9af1a29949
Make clippy happy 2025-05-30 16:06:45 +02:00
Clément Renault
d5d30ed4f2
Display pre-query prompt in search tool response 2025-05-30 16:06:45 +02:00
Clément Renault
81ea8933c1
Commit when putting stuff in LMDB 2025-05-30 16:06:44 +02:00
Clément Renault
9875f55384
Remove useless function 2025-05-30 16:06:44 +02:00
Clément Renault
eb4445070f
Expose new chat settings routes 2025-05-30 16:06:44 +02:00
Clément Renault
e603e221d5
Factorise a bit the code 2025-05-30 16:06:43 +02:00
Clément Renault
d94f16b1d2
Display the different tool calls we need to do 2025-05-30 16:06:43 +02:00
Clément Renault
59873fdc6c
Send an event with the content of the tool calling 2025-05-30 16:06:43 +02:00
Clément Renault
0f2ddf560b
Streaming supports tool calling 2025-05-30 16:06:42 +02:00
Clément Renault
fb08d62af9
Nearly support tools on the streaming route 2025-05-30 16:06:42 +02:00
Clément Renault
f8f2f8df97
Return the right message format 2025-05-30 16:06:42 +02:00
Clément Renault
5b642b558a
Aggregate tool calls and display the calls to make. 2025-05-30 16:06:42 +02:00
Clément Renault
ae89825b37
Implement a first version of a streamed chat API 2025-05-30 16:06:41 +02:00
Clément Renault
223f5b7283
Make it work by retrieving content from the index 2025-05-30 16:06:03 +02:00
Clément Renault
3bca6ff771
Support overwriten prompts of the search query 2025-05-30 16:06:03 +02:00