OPEN AI 极速开发平台

开放OPEN AI 平台接口文档


文本智能纠错

<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>{ &amp;quot;success&amp;quot;: true, &amp;quot;code&amp;quot;: &amp;quot;OK&amp;quot;, &amp;quot;message&amp;quot;: &amp;quot;成功&amp;quot;, &amp;quot;timestamp&amp;quot;: &amp;quot;2023-05-28 11:11:51&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;content&amp;quot;: { &amp;quot;id&amp;quot;: null, &amp;quot;object&amp;quot;: &amp;quot;edit&amp;quot;, &amp;quot;created&amp;quot;: 1685243510, &amp;quot;model&amp;quot;: null, &amp;quot;choices&amp;quot;: [ { &amp;quot;text&amp;quot;: &amp;quot;我爱我的妈妈\n&amp;quot;, &amp;quot;index&amp;quot;: 0, &amp;quot;logprobs&amp;quot;: null, &amp;quot;finish_reason&amp;quot;: null } ], &amp;quot;usage&amp;quot;: { &amp;quot;prompt_tokens&amp;quot;: 40, &amp;quot;completion_tokens&amp;quot;: 35, &amp;quot;total_tokens&amp;quot;: 75 } } } }</code></pre>

页面列表

ITEM_HTML