After watching this video video, you will know How to use ChatGPT In CMD or Terminal + Without VPN.
1. Install Python
2. Install OpenAI: pip install openai
Create a yourpython.py file in your folder, and paste this code in it.
# Import Library
import openai
# Provide an API key
openai.api_key = "Your_Key"
# Choosing a trained model
engine="text-davinci-003"
# Your question
prompt = "Назови лучшую Python библиотеку по машинному обучению"
# Модель
completion = openai.Completion.create(engine=engine,
prompt=prompt,
temperature=0.5,
max_tokens=1000)
# Get the output
print( completion.choices[0]['text'] )
У меня был такой ответ:
Scikit-learn.