Move chat completions endpoint to local path.
Some checks are pending
GBCI / build (push) Waiting to run

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-09-19 08:26:16 -03:00
parent babdaa79ca
commit d99b7fa0f8

View file

@ -251,7 +251,7 @@ fn messages_to_prompt(messages: &[ChatMessage]) -> String {
} }
// Proxy endpoint // Proxy endpoint
#[post("/v1/chat/completions")] #[post("/local/v1/chat/completions")]
pub async fn chat_completions_local( pub async fn chat_completions_local(
req_body: web::Json<ChatCompletionRequest>, req_body: web::Json<ChatCompletionRequest>,
_req: HttpRequest, _req: HttpRequest,