API 参考 / admin
GET /api/v1/admin/settings/llm · adminGetLLMSettings
读取产品 AI 接入外部大模型的配置(endpoint / model / 推理参数 / 成本单价)。 apiKey 永不回显明文,只回 apiKeyConfigured 布尔(write-only 范式,照 SMTP / 飞书 webhook / attachment_storage)。缺行 / 损坏 / 未配置都回 configured=false。要求平台超管。
本接口要求浏览器会话。Bearer API Token 无法调用——Token 的生命周期管理必须在网页端完成。
endpoint(必填)model(必填)temperature(必填)maxTokens(必填)promptCostPer1M(必填)completionCostPer1M(必填)currency(必填)apiKeyConfigured(必填)configured(必填)401:Problem 错误响应403:Problem 错误响应curl -X GET "https://你的项目.workflow.games/api/v1/admin/settings/llm" \
-H "Authorization: Bearer wfp_…"HTTP/1.1 200
{
"endpoint": "示例文本",
"model": "示例文本",
"temperature": 1,
"maxTokens": 1,
"promptCostPer1M": 1,
"completionCostPer1M": 1,
"currency": "示例文本",
"apiKeyConfigured": true,
"configured": true
}合同真值:OpenAPI 3.1(0.1.0)。
相关:Agent 接入指南 · 使用指南 · API 参考索引