自定义模型完整训练
开发环境
开发环境
POST
https://api.ai21.com/studio/v1/{model_type}/{model_name}/complete
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.ai21.com/studio/v1///complete' \
--header 'Content-Type: application/json' \
--data-raw '{
"numResults": 1,
"maxTokens": 16,
"minTokens": 0,
"temperature": 0.7,
"topP": 1,
"topKReturn": 0,
"frequencyPenalty": {
"scale": 0,
"applyToWhitespaces": true,
"applyToPunctuations": true,
"applyToNumbers": true,
"applyToStopwords": true,
"applyToEmojis": true
},
"presencePenalty": {
"scale": 0,
"applyToWhitespaces": true,
"applyToPunctuations": true,
"applyToNumbers": true,
"applyToStopwords": true,
"applyToEmojis": true
},
"countPenalty": {
"scale": 0,
"applyToWhitespaces": true,
"applyToPunctuations": true,
"applyToNumbers": true,
"applyToStopwords": true,
"applyToEmojis": true
}
}'
响应示例响应示例
{}
请求参数
Path 参数
model_type
string
必需
model_name
string
必需
Body 参数application/json
返回响应
修改于 2023-11-13 02:55:19