mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-10 08:28:25 +00:00
Merge 1f12078463 into 527d882508
This commit is contained in:
commit
0b08744dd2
2 changed files with 6 additions and 3 deletions
|
|
@ -16,7 +16,10 @@ class ConductGuardrailConfigModelOptionalParams(LiteLLMBaseModel):
|
|||
)
|
||||
tool_name: str | None = Field(
|
||||
default="llm_call",
|
||||
description="Conduct tool name the prompt is evaluated under. Match the tool your rules target.",
|
||||
description=(
|
||||
"Accepted for backward compatibility and ignored. "
|
||||
"Prompts are evaluated against the workspace's prompt rules."
|
||||
),
|
||||
)
|
||||
timeout: float | None = Field(
|
||||
default=8.0,
|
||||
|
|
@ -35,7 +38,7 @@ class ConductGuardrailConfigModel(GuardrailConfigModel[ConductGuardrailConfigMod
|
|||
description="Conduct agent token. Env: CONDUCT_AGENT_TOKEN.",
|
||||
)
|
||||
api_base: str | None = Field(
|
||||
default="https://api.conductai.ai",
|
||||
default="https://gateway.conductai.ai",
|
||||
description="Conduct API base URL. The MCP endpoint is derived as <api_base>/mcp.",
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ async def test_ui_offers_conduct_fields_without_the_package() -> None:
|
|||
|
||||
assert fields["ui_friendly_name"] == "Conduct Guard"
|
||||
assert fields["api_key"]["required"] is True
|
||||
assert fields["api_base"]["default_value"] == "https://api.conductai.ai"
|
||||
assert fields["api_base"]["default_value"] == "https://gateway.conductai.ai"
|
||||
optional: Final = fields["optional_params"]["fields"]
|
||||
assert set(optional) == {"workspace_id", "tool_name", "timeout", "unreachable_fallback"}
|
||||
assert optional["unreachable_fallback"]["type"] == "select"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue