更新聊天机器人设置 - 常规
开发环境
开发环境
PATCH
/api/v0/chatbots/{chatbotId}/settings/general
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://dev-cn.your-api-server.com/api/v0/chatbots//settings/general' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"chatbotDescription": "This is a test chatbot",
"systemPrompt": "You are a funny AI assistant and you answer the user queries based on the website content. Include jokes in your answer.",
"userPrompt": "You are an AI assistant who answers user questions based on the website content. Answer the questions in the same language as the language of the question.",
"historyCount": 4,
"gptModel": "gpt-3.5-turbo"
}'
响应示例响应示例
200 - 成功示例
{
"success": true,
"message": "Updated general settings of the chatbot successfully",
"data": {}
}
请求参数
Path 参数
chatbotId
string
必需
Header 参数
Authorization
string
必需
示例值:
Bearer <token>
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
返回响应
修改于 2024-03-28 08:24:31