mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 15:28:14 -05:00
Implement model routing support (#9738)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user