The ChatGPT API is OP. Build a CLI Chatbot in 16 LOC with Python + ChatGPT API.

preview_player
Показать описание
OpenAI launched the ChatGPT API today which makes it ridiculously easy to create chatbots in Python. Here's an implementation of a command line chatbot powered by Python and ChatGPT API in just 16 lines of code!
Рекомендации по теме
Комментарии
Автор

hope we can learn more. guess i should learn some python first huh, haha

arrxzon
Автор

also will you consider putting the code onto Github? thanks.

zhangxiang
Автор

Hi Hai Hai, when I ran the Python script, there is an error read " File "D:\16.py", line 11
response = openai.ChatCompletion.create( IndentationError: unindent does not match any outer indentation level" Any idea how to fix this? thanks

zhangxiang
Автор

reply =
TypeError: 'NoneType' object is not subscriptable

athirashibu
welcome to shbcf.ru