Introduce the first version of the /chat route that mimics the OpenAI API

This commit is contained in:
Clément Renault 2025-05-13 11:19:32 +02:00
parent 5d0d12dfbd
commit 5400f3941a
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
6 changed files with 251 additions and 5 deletions

View file

@ -52,6 +52,7 @@ const PAGINATION_DEFAULT_LIMIT_FN: fn() -> usize = || 20;
mod api_key;
pub mod batches;
pub mod chat;
mod dump;
pub mod features;
pub mod indexes;
@ -113,7 +114,8 @@ pub fn configure(cfg: &mut web::ServiceConfig) {
.service(web::scope("/swap-indexes").configure(swap_indexes::configure))
.service(web::scope("/metrics").configure(metrics::configure))
.service(web::scope("/experimental-features").configure(features::configure))
.service(web::scope("/network").configure(network::configure));
.service(web::scope("/network").configure(network::configure))
.service(web::scope("/chat").configure(chat::configure));
#[cfg(feature = "swagger")]
{