OpenAPI/V1
Completion (Legacy)
这里仅给出示例,完整文档请查看官方文档:https://platform.openai.com/docs/api-reference/completions
Authorization
Authorization
RequiredBearer <token>In: header
Request Body
application/x-www-form-urlencoded
Optionalmodel
string模型名称
prompt
stringPrompt
max_tokens
string最大生成Tokens长度
stream
string是否流式返回
Response Body
TypeScript Definitions
Use the response body type in TypeScript.