In agent-sdk examples, remove hard-coded model IDs...
# dev-pr-review
l
In agent-sdk examples, remove hard-coded model IDs and read from env vars if present: https://github.com/All-Hands-AI/agent-sdk/pull/740
b
@limited-student-10747 is there also a plan to replace all the hardcoded model names such as /workspaces/OpenHands/openhands/llm/model_features.py so that features for them can be read from litellm vs just derived based on names
c
is there also a plan to replace all the hardcoded model names such as /workspaces/OpenHands/openhands/llm/model_features.py
so that features for them can be read from litellm vs just derived based on names
Just to note, we have an issue on this somewhere, indeed we'd like to replace them with a
yaml
file or
json
, something like litellm does. OTOH, we need (some) of them: we read features from litellm, but we also add various cases per model because litellm's don't always cover all. For example, the native tool calling is there because we made evals and saw that some models, while they technically supported tool use, were worse with it than without; such bit of information doesn't exist in litellm. It's always possible that some get outdated though! In time, litellm has added more to its API on what model supports what etc. A better way to design this would be most welcome! Does it cause issues?
b
its inconvenient cause i dont name my models exactly like required or often have generic names like "fast" that are routed by litellm. i think overriding these in litellm is more flexible...
c
If I understand correctly, you use a litellm proxy?
l
Hey @breezy-author-40257 this seems like a very reasonable request, if you open an issue on the repo for it we can track it
b
@calm-artist-7206 yeah - specifying this in model_info in litellm is better