Files
crewAI/tests/utilities
Devin AI d422439b7a Fix Ollama embedding configurator to respect API_BASE environment variable
- Add support for API_BASE environment variable in _configure_ollama method
- Implement priority order: url config > api_base config > API_BASE env var > default
- Handle URL construction with proper /api/embeddings endpoint appending
- Maintain backward compatibility with existing url parameter
- Add comprehensive tests covering all configuration scenarios
- Fixes issue #3099: Ollama integration problems with API_BASE configuration

The fix ensures consistent behavior with other embedding providers and
allows users to configure Ollama embeddings using environment variables
for better deployment flexibility.

Co-Authored-By: João <joao@crewai.com>
2025-07-01 22:01:45 +00:00
..
2024-12-10 11:18:45 -05:00
2025-05-16 15:18:11 -04:00
2024-05-02 05:00:29 -03:00