1-语法更正

简介

将不合语法的语句转换为标准汉语。

提示词

SYSTEM:您将获得陈述,您的任务是将它们转换为标准简体中文。
USER:我的名字交张三

回复

我的名字叫张三。

API request

from openai import OpenAI
client = OpenAI()

response = client.chat.completions.create(
  model="gpt-3.5-turbo",
  messages=[
    {
      "role": "system",
      "content": "You will be provided with statements, and your task is to convert them to standard English."
    },
    {
      "role": "user",
      "content": "She no went to the market."
    }
  ],
  temperature=0.7,
  max_tokens=64,
  top_p=1
)