fix a bit more

This commit is contained in:
Adil Hafeez 2024-10-17 20:54:06 -07:00
parent b18c8d313c
commit 2114ac3144
3 changed files with 2 additions and 5 deletions

View file

@ -335,7 +335,6 @@ impl HttpContext for LlmGatewayStreamContext {
Ok(de) => de,
Err(e) => {
debug!("invalid response: {}", String::from_utf8_lossy(&body));
// self.send_server_error(ServerError::Deserialization(e), None);
return Action::Continue;
}
};

View file

@ -1279,7 +1279,6 @@ impl HttpContext for PromptStreamContext {
Ok(de) => de,
Err(e) => {
debug!("invalid response: {}, {}", String::from_utf8_lossy(&body), e);
// self.send_server_error(ServerError::Deserialization(e), None);
return Action::Continue;
}
};

View file

@ -1,4 +1,4 @@
from fastapi import FastAPI, HTTPException
from fastapi import FastAPI
import json
import random
from fastapi import FastAPI, Response
@ -46,8 +46,7 @@ async def weather(req: WeatherRequest, res: Response):
}
)
raise HTTPException(status_code=404, detail="some error")
# return weather_forecast
return weather_forecast
class InsuranceClaimDetailsRequest(BaseModel):