Improve errors and other stuff

This commit is contained in:
Kerollmops 2025-06-10 17:52:35 +02:00
parent 952fabf8a0
commit 506ee40dc5
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
3 changed files with 25 additions and 26 deletions

View file

@ -41,7 +41,6 @@ async fn get_settings(
let ChatsParam { workspace_uid } = chats_param.into_inner();
// TODO do a spawn_blocking here ???
let mut settings = match index_scheduler.chat_settings(&workspace_uid)? {
Some(settings) => settings,
None => {
@ -66,7 +65,6 @@ async fn patch_settings(
index_scheduler.features().check_chat_completions("using the /chats/settings route")?;
let ChatsParam { workspace_uid } = chats_param.into_inner();
// TODO do a spawn_blocking here
let old_settings = index_scheduler.chat_settings(&workspace_uid)?.unwrap_or_default();
let prompts = match new.prompts {