Antonio Cheong
commited on
Commit
·
8f31f82
1
Parent(s):
359dd99
fix types
Browse files- src/EdgeGPT.py +2 -2
src/EdgeGPT.py
CHANGED
@@ -152,7 +152,7 @@ class ChatHub:
|
|
152 |
conversation_id=conversation.struct["conversationId"],
|
153 |
)
|
154 |
|
155 |
-
async def ask_stream(self, prompt: str) -> Generator[str]:
|
156 |
"""
|
157 |
Ask a question to the bot
|
158 |
"""
|
@@ -220,7 +220,7 @@ class Chatbot:
|
|
220 |
if final:
|
221 |
return response
|
222 |
|
223 |
-
async def ask_stream(self, prompt: str) -> Generator[str]:
|
224 |
"""
|
225 |
Ask a question to the bot
|
226 |
"""
|
|
|
152 |
conversation_id=conversation.struct["conversationId"],
|
153 |
)
|
154 |
|
155 |
+
async def ask_stream(self, prompt: str) -> Generator[str, None, None]:
|
156 |
"""
|
157 |
Ask a question to the bot
|
158 |
"""
|
|
|
220 |
if final:
|
221 |
return response
|
222 |
|
223 |
+
async def ask_stream(self, prompt: str) -> Generator[str, None, None]:
|
224 |
"""
|
225 |
Ask a question to the bot
|
226 |
"""
|