Implement model routing support (#9738)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Ryan H. Tran
2025-09-08 16:19:34 +07:00
committed by GitHub
parent af0ab5a9f2
commit df9320f8ab
15 changed files with 515 additions and 7 deletions

View File

@@ -92,6 +92,9 @@ class CodeActAgent(Agent):
self.condenser = Condenser.from_config(self.config.condenser, llm_registry)
logger.debug(f'Using condenser: {type(self.condenser)}')
# Override with router if needed
self.llm = self.llm_registry.get_router(self.config)
@property
def prompt_manager(self) -> PromptManager:
if self._prompt_manager is None: