Antonio Cheong
commited on
Commit
·
72e3a11
1
Parent(s):
570a557
Fix type hints
Browse files- src/EdgeGPT.py +2 -2
src/EdgeGPT.py
CHANGED
@@ -156,7 +156,7 @@ class ChatHub:
|
|
156 |
# Make async ping loop (long running)
|
157 |
self.task = asyncio.create_task(self.__ping())
|
158 |
|
159 |
-
async def ask(self, prompt: str) ->
|
160 |
"""
|
161 |
Ask a question to the bot
|
162 |
"""
|
@@ -211,7 +211,7 @@ class Chatbot:
|
|
211 |
self.chat_hub = ChatHub()
|
212 |
await self.chat_hub.init(conversation=self.conversation)
|
213 |
|
214 |
-
async def ask(self, prompt: str) ->
|
215 |
"""
|
216 |
Ask a question to the bot
|
217 |
"""
|
|
|
156 |
# Make async ping loop (long running)
|
157 |
self.task = asyncio.create_task(self.__ping())
|
158 |
|
159 |
+
async def ask(self, prompt: str) -> dict:
|
160 |
"""
|
161 |
Ask a question to the bot
|
162 |
"""
|
|
|
211 |
self.chat_hub = ChatHub()
|
212 |
await self.chat_hub.init(conversation=self.conversation)
|
213 |
|
214 |
+
async def ask(self, prompt: str) -> dict:
|
215 |
"""
|
216 |
Ask a question to the bot
|
217 |
"""
|