Skip to content

Commit

Permalink
fix pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
JohntheLi committed Dec 13, 2024
1 parent ee874ea commit fe46a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fastapi_poe/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,8 @@ async def _cost_requests_inner(
self, amounts: Union[List[CostItem], CostItem], access_key: str, url: str
) -> bool:
amounts = [amounts] if isinstance(amounts, CostItem) else amounts
amounts = [amount.model_dump() for amount in amounts]
data = {"amounts": amounts, "access_key": access_key}
amounts_dicts = [amount.model_dump() for amount in amounts]
data = {"amounts": amounts_dicts, "access_key": access_key}
try:
async with httpx.AsyncClient(timeout=300) as client, httpx_sse.aconnect_sse(
client, method="POST", url=url, json=data
Expand Down

0 comments on commit fe46a7e

Please sign in to comment.