mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-06-04 19:25:32 +00:00
Change the /chat route to /chat/completions to be OpenAI-compatible
This commit is contained in:
parent
a51579e923
commit
487002f2f0
@ -42,7 +42,7 @@ use crate::search_queue::SearchQueue;
|
||||
const EMBEDDER_NAME: &str = "openai";
|
||||
|
||||
pub fn configure(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(web::resource("").route(web::post().to(chat)));
|
||||
cfg.service(web::resource("/completions").route(web::post().to(chat)));
|
||||
}
|
||||
|
||||
/// Get a chat completion
|
||||
|
Loading…
x
Reference in New Issue
Block a user