mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fix demo tests
This commit is contained in:
parent
db2060a866
commit
07321a1900
2 changed files with 2 additions and 9 deletions
1
.github/workflows/e2e_test_demos.yml
vendored
1
.github/workflows/e2e_test_demos.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue