Skip to content

Add remaining LLM fixes and LLM registry - #70

Merged
ryanhoangt merged 12 commits into
OpenHands:mainfrom
ryanhoangt:add-llm-remaining-fixes-and-llm-registry
Sep 3, 2025
Merged

ryanhoangt merged 12 commits into
OpenHands:mainfrom
ryanhoangt:add-llm-remaining-fixes-and-llm-registry

Conversation

@ryanhoangt

@ryanhoangt ryanhoangt commented Sep 3, 2025 •

Copy link
Copy Markdown
Member

This PR is to port:

When testing the LLM registry, it seems the current OH implementation has an issue that the LLM constructor modifies the config object internally (e.g. setting max input/output tokens), hence making it different from the original config. This PR fixes it by storing the original unmodified config inside LLM for the LLMRegistry to use.

Fix #52

@ryanhoangt
ryanhoangt marked this pull request as ready for review September 3, 2025 06:57

@xingyaoww xingyaoww left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you also port over tests for registry?

@ryanhoangt
ryanhoangt requested a review from xingyaoww September 3, 2025 13:57
Comment thread openhands/core/llm/llm.py Resolved

@xingyaoww xingyaoww left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you also port over tests for registry?

@ryanhoangt

Copy link
Copy Markdown
Member Author

Can you also port over tests for registry?

Yeah I already added the test file for core LLM registry functionalities, other tests from Rohit's PR are just for integration with other components. We can probably add them down the road.

@ryanhoangt
ryanhoangt merged commit f16a2da into OpenHands:main Sep 3, 2025
StressTestor pushed a commit to StressTestor/software-agent-sdk that referenced this pull request Jun 1, 2026
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
Co-authored-by: Xingyao Wang <xingyaoww@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port over LLM Registry and remaining LLM fixes

2 participants