diff --git a/crates/meilisearch/src/routes/chats/chat_completions.rs b/crates/meilisearch/src/routes/chats/chat_completions.rs index bf336f224..f65c958ee 100644 --- a/crates/meilisearch/src/routes/chats/chat_completions.rs +++ b/crates/meilisearch/src/routes/chats/chat_completions.rs @@ -310,7 +310,7 @@ async fn non_streamed_chat( index_scheduler.features().check_chat_completions("using the /chats chat completions route")?; return Err(ResponseError::from_msg( - format!("Non-streamed chat completions is not implemented"), + "Non-streamed chat completions is not implemented".to_string(), Code::UnimplementedNonStreamingChatCompletions, ));