Skip to content

Commit

Permalink
fix pyright (#132)
Browse files Browse the repository at this point in the history
fix a lint error
  • Loading branch information
JohntheLi authored Dec 13, 2024
1 parent feea552 commit 92c6eb5
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 92c6eb5

Please sign in to comment.