mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-18 04:44:37 +00:00
test(rust): check the dangerous-tool-use beta reaches the wire with safeguards
This commit is contained in:
parent
23d9082e32
commit
1e539895a2
1 changed files with 4 additions and 0 deletions
|
|
@ -301,6 +301,10 @@ fn sent_betas(request: &wiremock::Request) -> BetaSet {
|
|||
json!({"tools": [{"type": "advisor_20260301", "name": "advisor", "model": MODEL}]}),
|
||||
&[AnthropicBeta::AdvisorTool20260301]
|
||||
)]
|
||||
#[case::safeguards(
|
||||
json!({"safeguards": [{"type": "dangerous_tool_use", "classifier_context": {"v": 1}}]}),
|
||||
&[AnthropicBeta::DangerousToolUse20260903]
|
||||
)]
|
||||
#[case::several_features_at_once(
|
||||
json!({"speed": "fast", "output_format": {"type": "json_schema"}}),
|
||||
&[AnthropicBeta::StructuredOutputs20251113, AnthropicBeta::FastMode20260201]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue