Files
crawl4ai/crawl4ai/adaptive_crawler.py
Yurii Chukhlib 2a04fc319a fix: Allow local embeddings by removing OpenAI fallback in EmbeddingStrategy
Fixes #1658

The `_get_embedding_llm_config_dict` method was returning a fallback
OpenAI config when `embedding_llm_config` was None, which prevented
the use of local sentence-transformers embeddings.

Changed the method to:
- Return None when no embedding config is provided
- Update return type from Dict to Optional[Dict]
- Update docstring to clarify the behavior

This allows `get_text_embeddings` utility to correctly switch to
the local sentence-transformers implementation when no LLM config
is provided.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-17 11:10:33 +01:00

84 KiB