---
title: "检查远程模型"
method: POST
path: "/initialization/remote/check"
tags: ["初始化"]
---

# 检查远程模型

`POST /initialization/remote/check`

检查远程API模型连接是否正常

## Request body

- InternalHandlerRemoteModelCheckRequest
  - `apiKey` string
  - `appSecret` string — AppSecret 用于 LKEAP / Volcengine Rerank 等需要第二段密钥的场景（对应模型 Parameters.AppSecret）。
  - `baseUrl` string
  - `customHeaders` object
  - `dimension` integer
  - `extraConfig` object
  - `interfaceType` string
  - `modelId` string — ModelID, when set, instructs the handler to substitute any missing secrets (APIKey, AppSecret via ExtraConfig) from the stored model record before assembling the test client. This lets the "Test connection" button work on existing models without making the frontend reload — and ship — the plaintext API key. Other fields (BaseURL, ModelName, etc.) on this request still override the stored values, so a user can validate a new endpoint against the existing credentials in one click.
  - `modelName` string, required
  - `provider` string
  - `source` string — 为空时按需默认为 "remote"
  - `supportsDimensionOverride` boolean

## Response `200`

检查结果

- object

## Other responses

- `400` — 请求参数错误

---

[API](https://skmtc.net/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/versions/d6921ae22ce0/schema)
