при выполнении кода появляется такая ошибка
Traceback (most recent call last):
File "C:\Users\�����\AppData\Local\Programs\Python\Python311\Lib\code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
NameError: name 'hello' is not defined. Did you mean: 'help'?
а вот и сам код
import openai
import os
openai.api_key = os.getenv('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')
response = openai.Completion.create(
model="text-davinci-003",
prompt="hello",
temperature=0.5,
max_tokens=1000,
top_p=1.0,
frequency_penalty=0.5,
presence_penalty=0.0,
)
print(response)