[Bug] Litellm reports wrong tool schema to the server
Los mantenedores suelen responder en 1 día
@AnkitaNaik ya está trabajando en esto.
Desde el 5/11/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 57/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- backend-api-design
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 79
- Forks
- 23
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 3
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de IBM/vakra
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choicePosiblemente ocupada @beartester34 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
modelscope/evalscope#2330 ·
Los mantenedores suelen responder en 1 día
-
Distribution plot crashes when a numeric feature is constant in the train or test setPosiblemente ocupada @adembilge la tomó hoy. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MAIF/shapash#847 · 1 comentario ·
Los mantenedores suelen responder en 10 días
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 2 días
-
namespace team:operations
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
EclipseFdn/open-vsx.org#16738 ·
Los mantenedores suelen responder en 1 día