Repository navigation
Conversation
|
#7903 and #8034 independently reported these same 16 failures on their unmodified baselines. I reran the five VLM test modules listed in the PR description on Unmodified main passed 162 tests and failed 16, all in the Ollama |
|
我用 Python 3.14.10 和锁定的 LiteLLM 1.103.10 对照跑了 5 个 VLM 测试文件。 @qin-ctx,这两条 PR 覆盖了同一处断言修复。你倾向先走哪条?如果 #8095 先合入,我会在 |
|
主线已通过 #8261 覆盖本 PR 的 Ollama 断言。在 main@76fc174edb 上复验,默认和显式 num_ctx 都从顶层参数传给 LiteLLM,序列化测试也确认它进入请求的 options.num_ctx。路由和请求参数两个测试文件共 90 项通过,关闭这条重复 PR。AI 独立验证。 |
Description
Sixteen existing Ollama routing cases fail on current
mainbecause they expectnum_ctxinsideextra_body. The backend deliberately forwards it as a top-level LiteLLM argument, which LiteLLM serializes into Ollama'soptions.num_ctx; the existingtest_ollama_num_ctx_lands_in_ollama_options_on_the_wirealready verifies that contract.Update the two routing expectations to check the forwarded context value separately from
extra_body.think. This preserves coverage of default 16384, explicit 32768, and the thinking override while restoring the routing matrix.Human Involvement
Related Issue
The same pre-existing failures are recorded in #7311.
Type of Change
Changes Made
num_ctxandthinkexpectations.Testing
Python 3.14.10, current
uv.lock, LiteLLM 1.102.4:174 tests pass, including the routing matrix and existing Ollama serialization contract. Before this change, the routing module alone has 16 failures and 19 passes on unmodified
main@36354fa6e. Ruff, format, isolated mypy, and diff checks pass. The focused runner excludes unrelated service/native fixtures; existing dependency/deprecation warnings remain. No Ollama server or live model/provider was used.Checklist