diff --git a/crates/openai/src/serve/mod.rs b/crates/openai/src/serve/mod.rs index 61cf86c5..fe8ab500 100644 --- a/crates/openai/src/serve/mod.rs +++ b/crates/openai/src/serve/mod.rs @@ -511,18 +511,22 @@ async fn check_wan_address() { } } - async fn arkos_static(path: Path) -> Result, ResponseError> { let client = with_context!(api_client); let data = client - .get(format!("{}/v2/{}", arkose::Type::GPT4.origin_url(), path.0.as_str())) + .get(format!( + "{}/v2/{}", + arkose::Type::GPT4.origin_url(), + path.0.as_str() + )) .send() .await?; - let mut builder = Response::builder() - .status(data.status()); + let mut builder = Response::builder().status(data.status()); for (key, value) in data.headers().iter() { builder = builder.header(key, value); } let content = data.bytes().await?; - builder.body(content.into()).map_err(ResponseError::InternalServerError) + builder + .body(content.into()) + .map_err(ResponseError::InternalServerError) }