Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

docs(embedding): clarify DashScope endpoint configuration (#4154)

Onefly76c56acf705c
diff --git a/docs/en/guides/01-configuration.md b/docs/en/guides/01-configuration.md
index e34cd348e..52c0851fe 100644
--- a/docs/en/guides/01-configuration.md
+++ b/docs/en/guides/01-configuration.md
@@ -475,7 +475,8 @@ Get your API key at https://aistudio.google.com/apikey
"provider": "dashscope",
"api_key": "${DASHSCOPE_API_KEY}",
"model": "text-embedding-v4",
- "dimension": 1024
+ "dimension": 1024,
+ "input": "text"
}
}
}
@@ -492,11 +493,11 @@ Get your API key at https://aistudio.google.com/apikey
| `qwen3-vl-embedding` | 2560 | multimodal | Text + image + video |
| `qwen2.5-vl-embedding` | 1024 | multimodal | Text + image + video |
-**Multimodal parameters** (text+image/video models only):
+**Input and multimodal parameters**:
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
-| `input_type` | str | `"multimodal"` or `"text"` | Embedding mode (default: `"multimodal"`) |
+| `input` | str | `"multimodal"` | Embedding mode: `"text"` or `"multimodal"` |
| `enable_fusion` | bool | `false` | Enable fusion vectors for `tongyi-embedding-vision-*` models |
| `res_level` | int | `2` | Image resolution level (1=high, 2=medium, 3=low) |
| `max_video_frames` | int | `16` | Maximum video frames to embed |
@@ -508,7 +509,11 @@ Get your API key at https://aistudio.google.com/apikey
| China | `https://dashscope.aliyuncs.com` (default) | Recommended for users in mainland China |
| International | `https://dashscope-intl.aliyuncs.com` | For users outside China |
-Custom endpoint URLs are also supported by setting a full URL.
+For a custom gateway, set `api_base` to the gateway's base URL. OpenViking
+appends the mode-specific endpoint path automatically, so do not include
+`/compatible-mode/v1` (text mode) or
+`/api/v1/services/embeddings/multimodal-embedding/multimodal-embedding`
+(multimodal mode) in `api_base`.
Get your API key at https://dashscope.console.aliyun.com/api-key
diff --git a/docs/zh/guides/01-configuration.md b/docs/zh/guides/01-configuration.md
index 7f4aeef93..071ea58e5 100644
--- a/docs/zh/guides/01-configuration.md
+++ b/docs/zh/guides/01-configuration.md
@@ -445,7 +445,8 @@ openviking-server doctor
"provider": "dashscope",
"api_key": "${DASHSCOPE_API_KEY}",
"model": "text-embedding-v4",
- "dimension": 1024
+ "dimension": 1024,
+ "input": "text"
}
}
}
@@ -462,11 +463,11 @@ openviking-server doctor
| `qwen3-vl-embedding` | 2560 | multimodal | 文本 + 图像 + 视频 |
| `qwen2.5-vl-embedding` | 1024 | multimodal | 文本 + 图像 + 视频 |
-**多模态参数**(仅文本+图像/视频模型支持):
+**输入和多模态参数**:
| 参数 | 类型 | 默认值 | 说明 |
|------|------|--------|------|
-| `input_type` | str | `"multimodal"` 或 `"text"` | 嵌入模式(默认: `"multimodal"`) |
+| `input` | str | `"multimodal"` | 嵌入模式:`"text"` 或 `"multimodal"` |
| `enable_fusion` | bool | `false` | 为 `tongyi-embedding-vision-*` 模型启用融合向量 |
| `res_level` | int | `2` | 图像分辨率级别(1=高,2=中,3=低) |
| `max_video_frames` | int | `16` | 视频最大嵌入帧数 |
@@ -478,7 +479,11 @@ openviking-server doctor
| 中国 | `https://dashscope.aliyuncs.com`(默认) | 推荐中国大陆用户使用 |
| 国际 | `https://dashscope-intl.aliyuncs.com` | 推荐中国境外用户使用 |
-也支持设置完整 URL 来自定义端点地址。
+如果使用自定义网关,`api_base` 应填写网关根地址。OpenViking 会根据
+输入模式自动追加 endpoint 路径,因此不要在 `api_base` 中包含
+`/compatible-mode/v1`(文本模式)或
+`/api/v1/services/embeddings/multimodal-embedding/multimodal-embedding`
+(多模态模式)。
获取 API Key: https://dashscope.console.aliyun.com/api-key