Skip to content

Commit

Permalink
chore (services): exclude None values from dict response in chat service
Browse files Browse the repository at this point in the history
  • Loading branch information
aybruhm committed Feb 5, 2025
1 parent 33eb933 commit ef4a4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/chat/chat_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ async def generate(
}
)

return response.choices[0].message.model_dump()
return response.choices[0].message.model_dump(exclude_none=True)

0 comments on commit ef4a4f3

Please sign in to comment.