mirror of
https://github.com/katanemo/plano.git
synced 2026-07-05 15:52:12 +02:00
fix int tests
This commit is contained in:
parent
98a3b3e05d
commit
acb7dd2be5
3 changed files with 2 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ pub const MODEL_SERVER_NAME: &str = "model_server";
|
||||||
pub const ARCH_ROUTING_HEADER: &str = "x-arch-llm-provider";
|
pub const ARCH_ROUTING_HEADER: &str = "x-arch-llm-provider";
|
||||||
pub const ARCH_MESSAGES_KEY: &str = "arch_messages";
|
pub const ARCH_MESSAGES_KEY: &str = "arch_messages";
|
||||||
pub const ARCH_PROVIDER_HINT_HEADER: &str = "x-arch-llm-provider-hint";
|
pub const ARCH_PROVIDER_HINT_HEADER: &str = "x-arch-llm-provider-hint";
|
||||||
pub const CHAT_COMPLETIONS_PATH: &str = "v1/chat/completions";
|
pub const CHAT_COMPLETIONS_PATH: &str = "/v1/chat/completions";
|
||||||
pub const ARCH_STATE_HEADER: &str = "x-arch-state";
|
pub const ARCH_STATE_HEADER: &str = "x-arch-state";
|
||||||
pub const ARCH_FC_MODEL_NAME: &str = "Arch-Function-1.5B";
|
pub const ARCH_FC_MODEL_NAME: &str = "Arch-Function-1.5B";
|
||||||
pub const REQUEST_ID_HEADER: &str = "x-request-id";
|
pub const REQUEST_ID_HEADER: &str = "x-request-id";
|
||||||
|
|
|
||||||
|
|
@ -333,7 +333,7 @@ impl HttpContext for LlmGatewayStreamContext {
|
||||||
let chat_completions_response: ChatCompletionsResponse =
|
let chat_completions_response: ChatCompletionsResponse =
|
||||||
match serde_json::from_slice(&body) {
|
match serde_json::from_slice(&body) {
|
||||||
Ok(de) => de,
|
Ok(de) => de,
|
||||||
Err(e) => {
|
Err(_e) => {
|
||||||
debug!("invalid response: {}", String::from_utf8_lossy(&body));
|
debug!("invalid response: {}", String::from_utf8_lossy(&body));
|
||||||
return Action::Continue;
|
return Action::Continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -487,7 +487,6 @@ fn bad_request_to_open_ai_chat_completions() {
|
||||||
.expect_get_buffer_bytes(Some(BufferType::HttpRequestBody))
|
.expect_get_buffer_bytes(Some(BufferType::HttpRequestBody))
|
||||||
.returning(Some(incomplete_chat_completions_request_body))
|
.returning(Some(incomplete_chat_completions_request_body))
|
||||||
.expect_log(Some(LogLevel::Debug), None)
|
.expect_log(Some(LogLevel::Debug), None)
|
||||||
.expect_log(Some(LogLevel::Debug), None)
|
|
||||||
.expect_send_local_response(
|
.expect_send_local_response(
|
||||||
Some(StatusCode::BAD_REQUEST.as_u16().into()),
|
Some(StatusCode::BAD_REQUEST.as_u16().into()),
|
||||||
None,
|
None,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue