Model adapter for pydantic-ai #683
phil65
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
Wrote a small quick adapter to be able to use models from llm inside pydantic-ai.
https://github.com/phil65/LLMling-models
https://github.com/phil65/LLMling-models/blob/main/src/llmling_models/llm_adapter.py
The usefulness is limited at this moment though because llm does not support tool calling, and pydantic-ai does not (yet) support multimodal. So basically you end up with a simple text-based agent without any bells-and-whistles. Perhaps still interesting for people who want to try different models with pydantic-ai.
Beta Was this translation helpful? Give feedback.
All reactions