Repository navigation
Commit b667812
committed
fix: scope reasoning_effort=none to non-OpenAI targets, fix review findings
reasoning_effort="none" was being sent unconditionally to every
OpenAI-compatible server, including real api.openai.com, where it is
rejected by most current reasoning models. Gate it behind
self._server_type != _ServerType.OPENAI on the OpenAI backend and the
existing Ollama-provider-prefix check on the LiteLLM backend, matching
the mechanism each backend already uses for equivalent divergence.
Also, from the same review pass:
- Add granite-4.2 entries to BASE_MODEL_TO_CANONICAL_NAME so intrinsic
adapter-path resolution stays consistent with the 4.0/4.1 siblings.
- Update onboarding docs (quickstart, installation, troubleshooting,
tutorials, examples index) that still told new users to pull
granite4.1:3b, now stale since start_session()'s default moved to
granite4.2:3b.
- Fix the CI context-window guard to check the exact num_ctx value
instead of just line presence, so a silently-failed re-point to 8192
is actually caught.
- Replace the test asserting the raw "max_tokens" key reaches the wire
unmapped (it doesn't — both backends remap it to
ModelOption.MAX_NEW_TOKENS and back out to max_completion_tokens
regardless) with one that reflects actual behaviour.
- Stop test_reasoning_effort_conditional_passing from being confounded
by the shared fixture's default_extra_body, which forced
enable_thinking=False regardless of what the mapping code did.
- Fix test_thinking_false_sets_reasoning_effort_none_and_disable in
test_litellm_thinking.py, which had been flipped to assert the
regression itself against a vLLM target; split it into a non-Ollama
case (reasoning_effort absent) and a new Ollama-routed case (sent).
Assisted-by: Claude Code
Signed-off-by: Nigel Jones <[email protected]>1 parent 2ce9ea3 commit b667812
17 files changed
Lines changed: 173 additions & 56 deletions
File tree
- .github/workflows
- docs/docs
- examples
- getting-started
- troubleshooting
- tutorials
- mellea
- backends
- formatters/granite/intrinsics
- test
- backends
- telemetry
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
410 | 413 | | |
411 | 414 | | |
412 | 415 | | |
| |||
0 commit comments