hotspot / example.py
Antonio Cheong
Adaptive card has citations
570a557
raw
history blame
329 Bytes
import json
from EdgeGPT import Chatbot
async def main():
bot = Chatbot()
await bot.start()
result = json.dumps(
await bot.ask("Check GitHub for a repository names 'EdgeGPT'"), indent=4
)
print(result)
await bot.close()
if __name__ == "__main__":
import asyncio
asyncio.run(main())