Move chat completions endpoint to local path.
Some checks are pending
GBCI / build (push) Waiting to run
Some checks are pending
GBCI / build (push) Waiting to run
This commit is contained in:
parent
babdaa79ca
commit
d99b7fa0f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue