fix demo tests

This commit is contained in:
Adil Hafeez 2025-05-14 23:12:56 -07:00
parent db2060a866
commit 07321a1900
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
2 changed files with 2 additions and 9 deletions

View file

@ -22,6 +22,7 @@ jobs:
- name: build arch docker image
run: |
docker build -f arch/Dockerfile . -t katanemo/archgw -t katanemo/archgw:0.2.8
docker build -f arch/Dockerfile.brightstaff . -t katanemo/archgw:brightstaff -t katanemo/archgw:brightstaff_0.2.8
- name: install poetry
run: |

View file

@ -37,14 +37,6 @@ pub async fn chat_completion(
let mut request_headers = request.headers().clone();
info!(
"Request headers: {}",
request_headers
.iter()
.map(|(k, v)| format!("{}: {}", k, v.to_str().unwrap_or_default()))
.collect::<Vec<String>>()
.join(", ")
);
let chat_request_bytes = request.collect().await?.to_bytes();
let chat_completion_request: ChatCompletionsRequest =
match serde_json::from_slice(&chat_request_bytes) {
@ -58,7 +50,7 @@ pub async fn chat_completion(
};
info!(
"Received request: {}",
"request body: {}",
&serde_json::to_string(&chat_completion_request).unwrap()
);