mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Do a first clippy pass
This commit is contained in:
parent
3c218cc3a0
commit
8fdcdee0cc
7 changed files with 22 additions and 27 deletions
|
@ -16,12 +16,11 @@ use meilisearch_types::milli::update::Setting;
|
|||
use serde::{Deserialize, Serialize};
|
||||
use utoipa::ToSchema;
|
||||
|
||||
use super::ChatsParam;
|
||||
use crate::extractors::authentication::policies::ActionPolicy;
|
||||
use crate::extractors::authentication::GuardedData;
|
||||
use crate::extractors::sequential_extractor::SeqHandler;
|
||||
|
||||
use super::ChatsParam;
|
||||
|
||||
pub fn configure(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(
|
||||
web::resource("")
|
||||
|
@ -70,8 +69,7 @@ async fn patch_settings(
|
|||
|
||||
// TODO do a spawn_blocking here
|
||||
let mut wtxn = index_scheduler.write_txn()?;
|
||||
let old_settings =
|
||||
index_scheduler.chat_settings(&mut wtxn, &workspace_uid)?.unwrap_or_default();
|
||||
let old_settings = index_scheduler.chat_settings(&wtxn, &workspace_uid)?.unwrap_or_default();
|
||||
|
||||
let prompts = match new.prompts {
|
||||
Setting::Set(new_prompts) => DbChatCompletionPrompts {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue