ChatGPT
ChatGPT copied to clipboard
> Most basic example (I don't know async):
> Most basic example (I don't know async):
from revChatGPT.Official import AsyncChatbot import asyncio async def main(): bot = AsyncChatbot(api_key="sk-...") return await bot.ask("Hello World") if __name__ == "__main__": print(asyncio.run(main()))
your origin code has error:loof is running,after i ask chatgpt,it gives me these code,but it seems that no respond,please help me
Originally posted by @zjrwtx in https://github.com/acheong08/ChatGPT/issues/558#issuecomment-1417966843
from revChatGPT.Official import Chatbot
bot = Chatbot(apikey)
r = bot.ask("How are you today?")
r