mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fix
This commit is contained in:
parent
644ca28306
commit
2b40e72743
3 changed files with 5 additions and 4 deletions
|
|
@ -154,7 +154,7 @@ pub async fn chat_completions(
|
|||
}
|
||||
}
|
||||
} else {
|
||||
let body = match llm_response.text().await {
|
||||
let body_raw = match llm_response.bytes().await {
|
||||
Ok(body) => body,
|
||||
Err(err) => {
|
||||
let err_msg = format!("Failed to read response: {}", err);
|
||||
|
|
@ -164,7 +164,7 @@ pub async fn chat_completions(
|
|||
}
|
||||
};
|
||||
|
||||
match response.body(full(body)) {
|
||||
match response.body(full(body_raw)) {
|
||||
Ok(response) => Ok(response),
|
||||
Err(err) => {
|
||||
let err_msg = format!("Failed to create response: {}", err);
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|||
|
||||
let llm_providers = llm_providers.clone();
|
||||
let service = service_fn(move |req| {
|
||||
info!("main.rs: request headers: {:?}", req.headers());
|
||||
let router_service = Arc::clone(&router_service);
|
||||
let parent_cx = extract_context_from_request(&req);
|
||||
let llm_provider_endpoint = llm_provider_endpoint.clone();
|
||||
|
|
|
|||
|
|
@ -25,10 +25,10 @@ do
|
|||
echo "starting docker containers"
|
||||
docker compose up -d 2>&1 > /dev/null
|
||||
echo "starting hurl tests"
|
||||
if ! hurl hurl_tests/*.hurl; then
|
||||
if ! hurl -v hurl_tests/*.hurl; then
|
||||
echo "Hurl tests failed for $demo"
|
||||
echo "docker logs for archgw:"
|
||||
docker logs archgw
|
||||
docker logs archgw | tail -n 100
|
||||
exit 1
|
||||
fi
|
||||
echo "stopping docker containers and archgw"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue