文本智能纠错
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>文章错误检测纠错</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://api-openai.dtgarden.com/model/txtCorrection</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>请求Body参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">content</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>文章内容长度小于200</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
&quot;success&quot;: true,
&quot;code&quot;: &quot;OK&quot;,
&quot;message&quot;: &quot;成功&quot;,
&quot;timestamp&quot;: &quot;2023-05-28 11:11:51&quot;,
&quot;data&quot;: {
&quot;content&quot;: {
&quot;id&quot;: null,
&quot;object&quot;: &quot;edit&quot;,
&quot;created&quot;: 1685243510,
&quot;model&quot;: null,
&quot;choices&quot;: [
{
&quot;text&quot;: &quot;我爱我的妈妈\n&quot;,
&quot;index&quot;: 0,
&quot;logprobs&quot;: null,
&quot;finish_reason&quot;: null
}
],
&quot;usage&quot;: {
&quot;prompt_tokens&quot;: 40,
&quot;completion_tokens&quot;: 35,
&quot;total_tokens&quot;: 75
}
}
}
}</code></pre>