This commit is contained in:
Adil Hafeez 2025-05-29 23:47:45 -07:00
parent 644ca28306
commit 2b40e72743
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
3 changed files with 5 additions and 4 deletions

View file

@ -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);

View file

@ -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();

View file

@ -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"