style(fase1): ruff format spike modules
This commit is contained in:
parent
f7a36b59ac
commit
c1317689f1
6 changed files with 123 additions and 26 deletions
|
|
@ -137,8 +137,11 @@ class FakeChatClient(BaseChatClient):
|
|||
reply = self._next_reply()
|
||||
|
||||
if stream:
|
||||
|
||||
async def _agen() -> Any:
|
||||
yield ChatResponseUpdate(role="assistant", contents=[{"type": "text", "text": reply}])
|
||||
yield ChatResponseUpdate(
|
||||
role="assistant", contents=[{"type": "text", "text": reply}]
|
||||
)
|
||||
|
||||
return self._build_response_stream(_agen())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue