Skip to Content
OpenAPI 接入大模型监控配置

大模型监控配置

说明:本节两个接口为 pb 版对外 OpenAPI(路径 /geo/api/*),鉴权使用平台申请的 X-API-Key 与 X-Team-Id。查询接口返回原始配置记录,更新接口一次只写一条记录。实际可用模型、模式、频次和手机解锁条件以服务返回及套餐为准。

关于团队监控配置:pb 版不再提供独立的「查询团队监控配置」「保存团队监控配置」「恢复品牌跟随团队配置」接口,团队配置能力已合并到下面两个接口中。查询接口传 brand_id 后,会同时返回团队默认配置(team_configs)与品牌自身配置(brand_configs),并用 effective_source 标明当前生效来源:无品牌记录时即继承团队配置。更新接口传 brand_id 为 0 即写入团队默认配置;要恢复品牌跟随团队,把该品牌记录更新为关闭状态即可。因此团队配置的查询、修改与回退都通过这两个接口完成。

MonitorTaskConfigRecord 响应字段:

返回值类型含义
idstring配置记录 ID
team_idstring所属团队 ID
brand_idstring品牌 ID;0 表示团队默认配置
model_namestring模型名称
client_typestring端类型:pc 或 mobile
think_modestring思考模式:fast 或 deep
is_enabledbool是否启用
frequency_countint执行次数
frequency_unitstring执行周期:day / week / month

查询监控配置

  • 请求方法:POST
  • 请求路径:/geo/api/monitor/config/get

说明:返回品牌自身配置与团队默认配置两组原始记录,并用 effective_source 标明当前生效来源。记录包含已关闭的配置。

请求参数:

入参类型含义是否必填
brand_idstring品牌 ID是

请求示例:

{ "brand_id": "2013225757865672704" }

响应参数:

返回值类型含义
codeint0 表示成功
msgstring返回消息
data.team_idstring品牌所属团队 ID
data.brand_idstring查询的品牌 ID
data.team_configsobject 数组团队默认配置记录,字段见本节 MonitorTaskConfigRecord 表
data.brand_configsobject 数组品牌自身覆盖配置记录,字段见本节 MonitorTaskConfigRecord 表
data.effective_sourcestring生效来源:brand 表示存在品牌记录;team 表示无品牌记录,继承团队

响应示例:

{ "code": 0, "msg": "success", "data": { "team_id": "2013225757668540416", "brand_id": "2013225757865672704", "team_configs": [ { "id": "2128325515331764224", "team_id": "2013225757668540416", "brand_id": "0", "model_name": "qianwen", "client_type": "mobile", "think_mode": "fast", "is_enabled": true, "frequency_count": 2, "frequency_unit": "day" }, { "id": "2128325515432427520", "team_id": "2013225757668540416", "brand_id": "0", "model_name": "qianwen", "client_type": "mobile", "think_mode": "deep", "is_enabled": false, "frequency_count": 1, "frequency_unit": "day" } ], "brand_configs": [], "effective_source": "team" } }

保存监控配置

  • 请求方法:POST
  • 请求路径:/geo/api/monitor/config/update

说明:一次只更新一条记录,由 team_id + brand_id + model_name + client_type + think_mode 唯一定位。brand_id 传 0 表示团队默认配置。is_enabled 必须传入;未传的可选字段保留已有值。开启时 frequency_count 必须大于 0,且 PC 端要求模型支持;品牌手机端配置要求该模型已解锁。

请求参数:

入参类型含义是否必填
team_idstring团队 ID是
brand_idstring品牌 ID;0 表示团队默认配置是
model_namestring模型名称是
client_typestring端类型:pc / mobile是
think_modestring思考模式:fast / deep是
is_enabledbool是否启用;开启时须提供有效频次是
frequency_countint执行次数;不传保留已有值否
frequency_unitstring执行周期:day / week / month;不传保留已有值否

请求示例:

{ "team_id": "2013225757668540416", "brand_id": "0", "model_name": "qianwen", "client_type": "mobile", "think_mode": "fast", "is_enabled": true, "frequency_count": 2, "frequency_unit": "day" }

响应参数:

返回值类型含义
codeint0 表示成功
msgstring返回消息
data.configobject更新后的配置记录,字段见本节 MonitorTaskConfigRecord 表

响应示例:

{ "code": 0, "msg": "success", "data": { "config": { "id": "2128325515331764224", "team_id": "2013225757668540416", "brand_id": "0", "model_name": "qianwen", "client_type": "mobile", "think_mode": "fast", "is_enabled": true, "frequency_count": 2, "frequency_unit": "day" } } }
Answerbit - AI搜索可见度追踪平台