Results / request.max-tokens-ollama-openai

Output limit reaches Ollama's OpenAI-compatible endpoint

A short answer is requested through the OpenAI-compatible endpoint, which only honors the max_tokens field.

Bug class: The library sends something the caller didn't ask for

The library adds, drops or renames request fields the caller didn't set, or sends a combination the provider rejects.

Calls fail on current models, or behave differently from what the caller configured.

Requirements

LevelIdCheckRequirementProviders
MUSTlimit-fieldrequest_field_equalsThe request sends the output limit as max_tokens, the field Ollama applies.All

Fixtures

ProviderTierany-llmlitellmpydantic-aitanstack-aivercel-ai
ollama-openairecorded✗ WRONG✓ PASS✗ WRONG– UNSUPPORTED✓ PASS