Files
crewAI/lib
Devin AI 88f653cb4a fix: forward base_url and api_key from LLM to instructor client (#5204)
InternalInstructor._create_instructor_client() was discarding base_url
and api_key when calling instructor.from_provider(), causing requests
to go to api.openai.com instead of the configured endpoint.

Added _get_llm_extra_kwargs() to extract base_url and api_key from the
LLM object and forward them as kwargs to instructor.from_provider().
This fixes OpenAI-compatible endpoints (vLLM, Ollama, etc.) when using
output_pydantic or output_json on tasks.

Co-Authored-By: João <joao@crewai.com>
2026-04-01 10:19:46 +00:00
..