“50525c332b55f899fb231d786931d0b45a3f3d41”上不存在“include/uapi/git@gitcode.net:openanolis/cloud-kernel.git”

Auto Commit

上级 7c1aa84d
import openai
openai.api_key =input("YOUR_API_KEY_HERE:")
def generate_text(prompt):
response = openai.Completion.create(
engine="davinci",
prompt=prompt,
max_tokens=60,
n=1,
stop=None,
temperature=0.5,
)
message = response.choices[0].text.strip()
return message
prompt = input("提问:")
text = generate_text(prompt)
print(text)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册