-
malaohu说:
message_list = [{"role":"user", "content": "怎么报错了?"}]
completion = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=message_list)
print(completion)
return completion上面有误,请帮忙重写
。
message_list = [{"text": "怎么报错了?", "user": "user"}]
completion = openai.Completion.create(
engine="davinci",
prompt=message_list,
max_tokens=50
)
print(completion)