mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Fix the chat completions feature gate
This commit is contained in:
parent
c4e1407e77
commit
28dc7b836b
4 changed files with 20 additions and 7 deletions
|
@ -298,7 +298,7 @@ async fn non_streamed_chat(
|
|||
req: HttpRequest,
|
||||
mut chat_completion: CreateChatCompletionRequest,
|
||||
) -> Result<HttpResponse, ResponseError> {
|
||||
index_scheduler.features().check_chat_completions("Using the /chats chat completions route")?;
|
||||
index_scheduler.features().check_chat_completions("using the /chats chat completions route")?;
|
||||
let filters = index_scheduler.filters();
|
||||
|
||||
let rtxn = index_scheduler.read_txn()?;
|
||||
|
@ -398,7 +398,7 @@ async fn streamed_chat(
|
|||
req: HttpRequest,
|
||||
mut chat_completion: CreateChatCompletionRequest,
|
||||
) -> Result<impl Responder, ResponseError> {
|
||||
index_scheduler.features().check_chat_completions("Using the /chats chat completions route")?;
|
||||
index_scheduler.features().check_chat_completions("using the /chats chat completions route")?;
|
||||
let filters = index_scheduler.filters();
|
||||
|
||||
let rtxn = index_scheduler.read_txn()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue