当前位置: 首页 > 工具软件 > OpenAI Cursor > 使用案例 >

openai的的API如何使用

章盛
2023-12-01

openai的的API如何使用

import os
import openai

openai.api_key = os.getenv("OPENAI_API_KEY")

response = openai.Completion.create(
  model="text-davinci-003",
  prompt="I am a highly intelligent question answering bot. If you ask me a question that is rooted in truth, I will give you the answer. If y
 类似资料: