Mamadou DICKO
6e777327aa
feat(chatMessages): add brain_id and prompt_id columns ( #912 )
...
* feat: add prompt_id and brain_id to chat history)
* feat: add prompt_id and brain_id to chat routes
2023-08-10 10:25:08 +02:00
ChloeMouret
e9ebeef72a
feat: gpt4 is not available for brains if there is no given openAiKey ( #850 )
...
* rename defineMaxToken
* use gpt-3.5-turbo instead of gpt-3.5-turbo-0613
* gpt4 not available if no open ai key
2023-08-07 16:35:23 +02:00
Mamadou DICKO
b92d058fbe
test(backend): fix failing tests ( #851 )
2023-08-04 20:25:09 +02:00
Laurens Van Keer
659e585145
fix(chats): delete chats from correct table ( #834 )
2023-08-03 12:15:33 +02:00
Mamadou DICKO
4ca6c667da
feat(backend): implement brain-prompt link ( #831 )
...
* feat: add prompt_id field to brain
* feat(Prompt controller): update prompt routes
* feat: remove unused private prompts
* refactor: add BrainEntity and repo and service
* tests: partially type main Repository
* feat: add PromptStatusEnum enum
* feat: change delete prompt repository return type
2023-08-03 10:37:13 +02:00
Mamadou DICKO
e3b6114248
feat(prompt): add prompt table, entity and repository ( #823 )
...
* feat: add prompts table
* feat: add Prompt entity
* feat: add prompt router
* refactor(promptRepository): use common reposority
2023-08-03 09:53:38 +02:00
Stan Girard
c21797905d
feat(prompt): added instructions in standalone question & a bit more things ( #826 )
...
* fix(backend): temperature signature
* feat(qa): fixed temperature question generator and added doc
* feat(prompt): added instructions to standalone question
* fix(brains-rights): fixed function missing
2023-08-02 10:31:42 +02:00
Noe
303ba72028
feat: Introduce repository pattern to prepare adding other database providers ( #646 )
...
* add sqlalchemy models
* add neon settings
* add insert brain
* abstract supabase from Brain class
* abstract supabase from Brain class
* abstract supabase from /models
* update Database to Repository
* update neon_tables to pg_tables
* update chat, api-key and message
* update vector class
* update settings
* update env vars for test
* Update backend-tests.yml
* fix test
* fix fetch_user_requests_count()
* fix fetch_user_requests_count()
* fix increment_user_request_count
* fix increment_user_request_count
* fix asset upload_response message
* fix pyright
* fix brain_subscription
* fix brain_subscription
* fix brain_subscription
* fix get user request stat
* update create_brain_user
* add delete brain vector and user
* add delete brain vector and user
* correctly call function
---------
Co-authored-by: Noé Pion <noe.pion@onfido.com>
Co-authored-by: raoufchebri <raouf@chebri.com>
Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2023-08-01 23:03:47 +02:00