[Bug] Litellm reports wrong tool schema to the server
メンテナーはふだん 1 日以内に返信
@AnkitaNaik がすでに取り組んでいます。
2026年11月5日 から。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 57/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Start by tracing how benchmark_runner.py builds tool definitions for the LiteLLM provider, then compare the outgoing schema in the issue with the tool explorer's expected schema. Reproduce with the provided benchmark command and inspect the linked LiteLLM log. Done when the request exposes publisher_id and min_pages as required tool parameters.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Litellm reports wrong tool schema to the server which confuses the model and none of the tools with required args are called successfully
To Reproduce
Steps to reproduce the behavior:
(Tested on 3.14.8 system package and 3.11 & 3.12 packages from uv)
- Follow install instructions
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[init]"
pip install -r requirements_benchmark.txt
make download
make build
docker compose up
- Install langchain integration
pip install langchain-litellm
- Launch benchmark targeting openai-compatable endpoint (vllm in my case)
OPENAI_API_KEY="EMPTY" LITELLM_BASE_URL=http://127.0.0.1:7700/v1 python benchmark_runner.py --capability_id 2 --provider litellm --model Qwen/Qwen3.5-122B-A10B-FP8 --temperature 0.6
- Observe debug logs containing POST Request Sent from LiteLLM
{
'type': 'function',
'function':
{
'name': 'get_count_books_by_publisher_and_pages',
'description': "Retrieves the total count of books from a specific publisher that have more than a specified number of pages. The operation requires the publisher's ID and the minimum number of pages as input parameters.",
'parameters':
{
'properties':
{
'args': {'default': None, 'items': {}, 'type': 'array'},
'config':
{
'description': 'Configuration for a "Runnable".\n\n!!! note Custom values\n\n The "TypedDict" has "total=False" set intentionally to:\n\n - Allow partial configs to be created and merged together via "merge_configs"\n - Support config propagation from parent to child runnables via\n "var_child_runnable_config" (a "ContextVar" that automatically passes\n config down the call stack without explicit parameter passing), where\n configs are merged rather than replaced\n\n !!! example\n\n """python\n # Parent sets tags\n chain.invoke(input, config={"tags": ["parent"]})\n # Child automatically inherits and can add:\n # ensure_config({"tags": ["child"]}) -> {"tags": ["parent", "child"]}\n """',
'properties': {'tags': {'items': {'type': 'string'}, 'type': 'array'}, 'metadata': {'additionalProperties': True, 'type': 'object'}, 'callbacks': {'anyOf': [{'items': {}, 'type': 'array'}, {}, {'type': 'null'}]}, 'run_name': {'type': 'string'}, 'max_concurrency': {'anyOf': [{'type': 'integer'}, {'type': 'null'}]}, 'recursion_limit': {'type': 'integer'}, 'configurable': {'additionalProperties': True, 'type': 'object'}, 'run_id': {'anyOf': [{'format': 'uuid', 'type': 'string'}, {'type': 'null'}]}}, 'type': 'object'
},
'kwargs': {'additionalProperties': True, 'default': None, 'type': 'object'}
},
'required': ['config'],
'type': 'object'
}
}
}
Expected behavior
Correct schema (same as in tool explorer)
{
"properties": {
"publisher_id": {
"type": "integer",
"description": "ID of the publisher"
},
"min_pages": {
"type": "integer",
"description": "Minimum number of pages"
}
},
"required": [
"publisher_id",
"min_pages"
]
}
Example of full POST sent by LiteLLM
litellm_log.txt
- 主要言語
- Python
- スター
- 79
- フォーク
- 23
- 平均マージ
- 2日 7時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
IBM/vakra のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
future-agi/future-agi#5908 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
eclipse-score/coverage_tool#101 ·
メンテナーはふだん 2 日以内に返信
-
Placeholder export disables HTML image input for picture description対応中かも @cloudiful が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
docling-project/docling-serve#817 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
Techiebutler/freeframe#687 ·
メンテナーはふだん 1 日以内に返信
-
Parse truncated verbose GC logs up to the first XML error対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug verbose GC
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
IBM/javacore-analyser#677 ·
メンテナーはふだん 1 日以内に返信