Spaces:
Sleeping
Sleeping
Update aws_aiclient.py
Browse files- aws_aiclient.py +1 -0
aws_aiclient.py
CHANGED
@@ -70,6 +70,7 @@ class AIClient:
|
|
70 |
|
71 |
# Stream the response
|
72 |
async for chunk in self.client.astream(messages):
|
|
|
73 |
if chunk.content and chunk.content[0].get("text"):
|
74 |
content = chunk.content[0].get("text")
|
75 |
yield content
|
|
|
70 |
|
71 |
# Stream the response
|
72 |
async for chunk in self.client.astream(messages):
|
73 |
+
print(chunk)
|
74 |
if chunk.content and chunk.content[0].get("text"):
|
75 |
content = chunk.content[0].get("text")
|
76 |
yield content
|