-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
enhancementNew feature or requestNew feature or request
Description
We should completely redesign the way models (both embedding and LLM) are accessed. Most likely we can use Pydantic.AI for this. (We could use it instead of TypeChat too, but when I tried that, results were worse than TypeChat, and I didn't have the time to delve deeper into the reasons.)
- The AsyncEmbeddingModel class should wrap a Pydantic.AI embedding API (assuming one exists) instead of going straight to the openai package.
- The TypeChatModel (sp?) class should wrap a Pydantic.AI model class.
- Environment variables should be redesigned to support setting the provider and model name; but you should also be allowed to create your own Pydantic.AI-based implementations of those classes.
- The current set of environment variables (esp. for AZURE_OPENAI) should still be supported.
ikks and Abdur-rahmaanJ
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request