uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
uip llm 网关
"uip llm-网关模型"的语法和选项,其中列出了通过 UiPath LLM 网关发现 API 可用于产品/功能的 LLM 模型。
uip llm-gateway列出了通过UiPath LLM 网关可用的 LLM 模型——平台托管路由层,用于解析是哪个底层模型(Claude、GPT 等)支持给定产品功能,并考虑租户策略、BYO 模型配置和预览门控。只有一个命令:models。
请参阅工具(插件) ,了解此工具如何与 CLI 集成。有关管理此发现结果反映的 BYO LLM 连接和防护栏配置的信息,请参阅uip llm-configuration和uip guardrails 。
大纲
uip llm-gateway models --product <name> --feature <name> [--operation <code>] [--login-validity <minutes>]
uip llm-gateway models --product <name> --feature <name> [--operation <code>] [--login-validity <minutes>]
uip llm 网关模型
列出由 LLM 网关发现 API 解析的给定产品和功能范围内的可用 LLM 模型,考虑了租户策略块、预览版标志和 BYO 订阅。
选项
| 长 | 值 | 必填 | 描述 |
|---|---|---|---|
--product <name> | 字符串 | 是 | 请求产品范围,例如guardrails。 |
--feature <name> | 字符串 | 是 | 请求功能作用域,例如llm-as-judge-validator。 |
--operation <code> | 字符串 | 否 | 将结果范围缩小到特定的操作代码,例如Guardrails.LlmAsJudge.Debug。 |
--login-validity <minutes> | 整数 | 否 | 覆盖此调用的交互式登录令牌生存期。 |
示例
# List LLM models available for the LLM-as-judge guardrail
uip llm-gateway models --product guardrails --feature llm-as-judge-validator
# List LLM models available for the LLM-as-judge guardrail
uip llm-gateway models --product guardrails --feature llm-as-judge-validator
# List models scoped to the debug operation mode
uip llm-gateway models --product guardrails --feature llm-as-judge-validator \
--operation Guardrails.LlmAsJudge.Debug
# List models scoped to the debug operation mode
uip llm-gateway models --product guardrails --feature llm-as-judge-validator \
--operation Guardrails.LlmAsJudge.Debug
# List models for a different product and feature
uip llm-gateway models --product agenthub --feature agent-health-score-linter
# List models for a different product and feature
uip llm-gateway models --product agenthub --feature agent-health-score-linter
数据形状(--输出 json)
{
"Code": "LlmGatewayModelsList",
"Data": [
{
"ModelId": "anthropic.claude-haiku-4-5-20251001-v1:0",
"DisplayName": "Claude Haiku 4.5",
"Vendor": "AwsBedrock",
"ModelFamily": "AnthropicClaude",
"SubscriptionType": "UiPathOwned",
"IsByo": false,
"IsPreview": false,
"IsBlockedByPolicy": false
}
]
}
{
"Code": "LlmGatewayModelsList",
"Data": [
{
"ModelId": "anthropic.claude-haiku-4-5-20251001-v1:0",
"DisplayName": "Claude Haiku 4.5",
"Vendor": "AwsBedrock",
"ModelFamily": "AnthropicClaude",
"SubscriptionType": "UiPathOwned",
"IsByo": false,
"IsPreview": false,
"IsBlockedByPolicy": false
}
]
}
当模型来自通过uip llm-configuration byo-connections配置的自带连接时, IsByo为true 。IsBlockedByPolicy 反映租户级别的监管策略,与模型是否可用无关。空的 Data 数组意味着没有可用于该产品/功能组合的模型,这并非错误。
错误行为
任何失败(包括无活动登录)都会返回带有 Failure 的 Instructions: "Run 'uip login' to authenticate before using this command." — 这是此处 CLI 的通用回退指令,不一定是真正原因;检查附带的 Message 以确定根本错误。
另请参阅
uip llm-configuration— 管理此发现结果可以反映的 BYO LLM 连接。uip guardrails— 用于防护栏配置的 LLM 网关模型发现使用者。- 工具(插件)
- 全局选项
- 退出代码