Unverified Commit 27ef1459 authored by Chang Su's avatar Chang Su Committed by GitHub
Browse files

[router][protocols] Add Axum validate extractor and use it for...

[router][protocols] Add Axum validate extractor and use it for `/v1/chat/completions` endpoint (#11588)
parent e4358a45
...@@ -601,7 +601,6 @@ async fn test_unsupported_endpoints() { ...@@ -601,7 +601,6 @@ async fn test_unsupported_endpoints() {
prompt: None, prompt: None,
text: Some("Hello world".to_string()), text: Some("Hello world".to_string()),
input_ids: None, input_ids: None,
parameters: None,
sampling_params: None, sampling_params: None,
stream: false, stream: false,
return_logprob: false, return_logprob: false,
...@@ -642,7 +641,6 @@ async fn test_openai_router_chat_completion_with_mock() { ...@@ -642,7 +641,6 @@ async fn test_openai_router_chat_completion_with_mock() {
// Create a minimal chat completion request // Create a minimal chat completion request
let mut chat_request = create_minimal_chat_request(); let mut chat_request = create_minimal_chat_request();
chat_request.messages = vec![ChatMessage::User { chat_request.messages = vec![ChatMessage::User {
role: "user".to_string(),
content: UserMessageContent::Text("Hello, how are you?".to_string()), content: UserMessageContent::Text("Hello, how are you?".to_string()),
name: None, name: None,
}]; }];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment