转载

ChatGPT插件例子 语言语法修正

将句子改成标准英语。
提示:
将此更正为标准英语:She no went to the market。
答案:
She did not go to the market.
import os
import openai

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

response = openai.Completion.create(
  model="text-davinci-003",
  prompt="Correct this to standard English:\n\nShe no went to the market.",
  temperature=0,
  max_tokens=60,
  top_p=1.0,
  frequency_penalty=0.0,
  presence_penalty=0.0
)