Files
crewAI/docs/en
Devin AI 36d9ca099e fix: add backward compatibility for legacy RAG tool config format
Fixes #4028 - WebsiteSearchTool always requires OpenAI API key even when
Ollama or other providers are specified.

The issue was that the documentation showed the old config format with
'llm' and 'embedder' keys, but the actual RagToolConfig type expects
'embedding_model' and 'vectordb' keys. When the old format was passed,
the embedder config was not recognized, causing the tool to fall back
to the default OpenAI embedding function which requires OPENAI_API_KEY.

Changes:
- Add _normalize_legacy_config method to RagTool that maps legacy
  'embedder' key to 'embedding_model'
- Emit deprecation warnings for legacy config keys
- Ignore 'llm' key with warning (not used in RAG tools)
- Add tests for backward compatibility
- Update documentation to show new config format with examples

Co-Authored-By: João <joao@crewai.com>
2025-12-04 11:27:17 +00:00
..
2025-11-24 13:15:24 -08:00
2025-12-01 18:56:56 -05:00
2025-09-05 17:40:11 -04:00
2025-12-02 16:39:58 -05:00
2025-11-24 13:15:24 -08:00
2025-11-24 13:15:24 -08:00
2025-11-24 13:15:24 -08:00
2025-09-05 17:40:11 -04:00
2025-11-24 13:15:24 -08:00
2025-09-05 17:40:11 -04:00