From adfa23442f4b6996ccf4e05c9558c53c4de539f3 Mon Sep 17 00:00:00 2001 From: LuoShui Date: Wed, 27 Mar 2024 15:59:51 +0800 Subject: [PATCH] :bug: Fix `force_paragen_model_slug` --- crates/openai/src/serve/proxy/req.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/openai/src/serve/proxy/req.rs b/crates/openai/src/serve/proxy/req.rs index a10b7a52..5ec6f35c 100644 --- a/crates/openai/src/serve/proxy/req.rs +++ b/crates/openai/src/serve/proxy/req.rs @@ -135,6 +135,8 @@ async fn handle_conv_request(req: &mut RequestExt) -> Result<(), ResponseError> warn!("Chat requirements token not found") } + body.insert("force_paragen_model_slug", ""); + // Parse model let model = GPTModel::from_str(model).map_err(ResponseError::BadRequest)?;