Results / finish.stop-sequence
Generation ends at a stop sequence
The model reaches a requested stop sequence and reports a normal stop.
Bug class: Finish reason mapped to the wrong value
The library maps the provider's finish value to a different canonical value, drops it, or fails on a value it doesn't know.
Code that branches on the finish reason takes the wrong branch, for example treating a content filter or a new value as a normal stop.
Requirements
| Level | Id | Check | Requirement | Providers |
|---|---|---|---|---|
| MUST | finish-is-stop | finish_is | The library reports a normal stop. | All |
| MUST | text-reported | text_matches_truth | The text is reported exactly as the provider sent it. | All |
Fixtures
| Provider | Tier | any-llm | litellm | pydantic-ai | tanstack-ai | vercel-ai |
|---|---|---|---|---|---|---|
| anthropic | documented | ✓ PASS | ✓ PASS | ✓ PASS | – UNSUPPORTED | ✓ PASS |
| gemini | recorded | ✓ PASS | ✓ PASS | ✓ PASS | – UNSUPPORTED | ✓ PASS |
| ollama | recorded | ✓ PASS | ✓ PASS | – UNSUPPORTED | – UNSUPPORTED | – UNSUPPORTED |
| ollama-openai | recorded | ✓ PASS | ✓ PASS | ✓ PASS | – UNSUPPORTED | ✓ PASS |