EndpointType
public enum EndpointType
源码Source
io/agentscope/extensions/model/dashscope/EndpointType.java:33–52定义端点类型的枚举。位于 io.agentscope.extensions.model.dashscope 包。核心成员包括 AUTO、TEXT、MULTIMODAL。
Enum representing the endpoint type for DashScope models.
This allows developers to explicitly specify which API endpoint to use, overriding the automatic model name-based detection.
Usage example:
`DashScopeChatModel model = DashScopeChatModel.builder()
.apiKey("sk-xxx")
.modelName("qwen3.5-plus")
.endpointType(EndpointType.MULTIMODAL) // Explicitly use multimodal API
.build();
`
枚举常量摘要Enum Constant Summary
| 常量Constant | 说明Description |
|---|---|
AUTO | 执行 `AUTO` 方法。 Automatically determine endpoint type based on model name. |
TEXT | 执行文本相关操作。 Force use of text generation API. |
MULTIMODAL | 执行多模态相关操作。 Force use of multimodal generation API. |
枚举常量详情Enum Constant Detail
AUTO
AUTO
staticfinal
执行 AUTO 方法。
Automatically determine endpoint type based on model name.
@see DashScopeHttpClient#isMultimodalModel(String)
源码Source
io/agentscope/extensions/model/dashscope/EndpointType.java:41TEXT
TEXT
staticfinal
执行文本相关操作。
Force use of text generation API.
源码Source
io/agentscope/extensions/model/dashscope/EndpointType.java:46MULTIMODAL
MULTIMODAL
staticfinal
执行多模态相关操作。
Force use of multimodal generation API.
源码Source
io/agentscope/extensions/model/dashscope/EndpointType.java:51