From 1a5cf1c57fce49d5e5da779eaba484e27757035e Mon Sep 17 00:00:00 2001 From: Matthew Farrellee Date: Fri, 15 Aug 2025 11:56:47 -0400 Subject: [PATCH] use incorrect keys to trigger inference error --- tests/integration/batches/test_batches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/batches/test_batches.py b/tests/integration/batches/test_batches.py index 1ef3202d0..59811b7a4 100644 --- a/tests/integration/batches/test_batches.py +++ b/tests/integration/batches/test_batches.py @@ -180,8 +180,8 @@ class TestBatchesIntegration: "url": "/v1/chat/completions", "body": { "model": text_model_id, - "messages": [{"role": "user", "content": "This should fail"}], - "max_tokens": -1, # Invalid negative max_tokens will cause inference error + "messages": [{"rolez": "user", "contentz": "This should fail"}], # Invalid keys to trigger error + # note: ollama does not validate max_tokens values or the "role" key, so they won't trigger an error }, }, ]