Skip to content

Conversation

greysonlalonde
Copy link
Contributor

Fixes embedder configuration parsing to properly handle the documented nested format with 'config' key.

- Add EmbedderConfig TypedDict for better type safety
- Fix parsing to properly handle nested 'config' key as documented
- Support both 'model' and 'model_name' keys for OpenAI compatibility
- Add comprehensive tests for Azure and regular OpenAI configurations
- Update docstrings and examples to clarify expected formats
@greysonlalonde
Copy link
Contributor Author

addresses #3571

@greysonlalonde greysonlalonde requested a review from a team September 23, 2025 00:21
@greysonlalonde greysonlalonde added the bug Something isn't working label Sep 23, 2025
…upport

- Add automatic API key injection from environment variables for all providers
- Add special handling for amazon-bedrock to auto-create boto3 session
- Support all 15 embedding providers with proper configuration
- Fix model/model_name field conversion for backward compatibility
- Add comprehensive tests for all providers and new functionality
- Improve type hints with MutableMapping for config dictionaries
Copy link
Collaborator

@lorenzejay lorenzejay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@greysonlalonde greysonlalonde merged commit 4ac65eb into main Sep 23, 2025
42 checks passed
@greysonlalonde greysonlalonde deleted the gl/fix/embedder-config-parsing branch September 23, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants