获取项目设置
GET
api/v1/projects/{projectId}/settings检索特定项目的项目设置。此端点允许您获取与项目关联的配置和设置。
请求参数
Path 参数
projectId
string
必需
唯一的项目标识符。
示例代码
返回响应
成功(200)
请求有误(400)
没有权限(401)
记录不存在(404)
服务器错误(500)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
data
object
必需
chatbot_avatar
string
必需
chatbot_background
string
必需
default_prompt
string
必需
example_questions
array[string]
必需
response_source
string
必需
chatbot_msg_lang
string
必需
chatbot_color
string
必需
persona_instructions
string
必需
citations_answer_source_label_msg
string
必需
citations_sources_label_msg
string
必需
hang_in_there_msg
string
必需
chatbot_siesta_msg
string
必需
is_loading_indicator_enabled
boolean
必需
enable_citations
boolean
必需
citations_view_type
string
必需
no_answer_message
string
必需
ending_message
string
必需
remove_branding
boolean
必需
chatbot_model
string
必需
is_selling_enabled
boolean
必需
license_slug
boolean
必需
selling_url
string
必需
示例
成功示例
{
"status": "success",
"data": {
"chatbot_avatar": "https://example.com/chatbot_avatar.png",
"chatbot_background": "https://example.com/chatbot_background.png",
"default_prompt": "How can I help you?",
"example_questions": [
"How do I get started?"
],
"response_source": "own_content",
"chatbot_msg_lang": "en",
"chatbot_color": "#000000",
"persona_instructions": "You are a custom chatbot assistant called CustomGPT, a friendly lawyer who answers questions based on the given context.",
"citations_answer_source_label_msg": "Where did this answer come from?",
"citations_sources_label_msg": "Sources",
"hang_in_there_msg": "Hang in there! I'm thinking..",
"chatbot_siesta_msg": "Oops! The chat bot is taking a siesta. This usually happens when OpenAI is down! Please try again later.",
"is_loading_indicator_enabled": true,
"enable_citations": true,
"citations_view_type": "user",
"no_answer_message": "Sorry, I don't have an answer for that.",
"ending_message": "Please email us for further support",
"remove_branding": false,
"chatbot_model": "gpt-4",
"is_selling_enabled": false,
"license_slug": true,
"selling_url": "string"
}
}
最后修改时间: 10 个月前