<github.com/OpenHands/software-agent-sdk/pull/6789...
# proj-agent
q
github.com/OpenHands/software-agent-sdk/pull/6789 - elevating model router as the way to manage llms and switch between them
šŸ‘€ 1
c
Sorry I’m dense, I don’t understand… In the video, in this frame there are 3 model names on the screen
• top right says glm • bottom dropdown says 6 sol • the agent appears to believe it’s gpt 5.2 šŸ˜…
Ahh I see, it’s an API for the future, I looked at the video first, sorry
šŸ¤” Looking at the API on After… with Provider Connections, I think maybe there should be no need to send keys
Please correct me if wrong, I imagine • we can have, on the Before,
switch_profile
work only with profile names, not with LLM objects, • on the After, routing switch between profiles names or not?
This makes sense to me: don’t switch llm in state, add a level of indirection through router, so that all switches happen through the router - ā€œmanual modeā€
I don't understand why is there any key in the design doc
do we ever need to work with keys, anywhere in these operations, switch, route, choose connection?
q
ahh its a naming issue - pretty sure llm key just means a uniquely identified name for the llm object we should just call it ā€œselected_llmā€
in a future pr, i want to support adding new llms mid conversation (this api will be the only time we accept llm keys if the user decides to configure a new llm provider)
c
That sounds better, can we use profiles instead of llm objects? I think we’ll remove almost all code about raw llms
q
like agent profiles or llm profiles?
c
llm profiles. they're always profiles, that is, they’re configured
q
good catch will take a look
šŸ™ 1
m
+1 on naming issues, we have two things called model router šŸ˜…
c
Ohh shouldn’t we delete the old one?
m
they do different things
@quick-window-91705 is the idea for the route_task_to_model (that calls the model routers
OpenHands Router Pro
,
OpenHands Router Flash
) tools to use the #6789 api for switching LLMs?
@calm-artist-7206 RouteLLM handles actual request redirection while Openhands Model Router classifies the task and then delegates the redirection
šŸ‘ 1
q
@millions-crayon-32880 yes I think it would be ideal if route_task_to_model calls the apis in the PR above for switching LLMs
nod 1
the first two prs in this stack are ready for review
šŸ‘€ 1
m
approved both and noticed you created github.com/OpenHands/software-agent-sdk/issues/6941 nice!
ty 1
q
@millions-crayon-32880 adding router llm switch api support to the
route_task_to_model
tool
šŸ™Œ 1
here it is