mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
[Refactor]: Add LLMRegistry for llm services (#9589)
Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: Graham Neubig <neubig@gmail.com> Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
This commit is contained in:
@@ -23,7 +23,7 @@ class ServiceContext:
|
||||
def __init__(self, strategy: IssueHandlerInterface, llm_config: LLMConfig | None):
|
||||
self._strategy = strategy
|
||||
if llm_config is not None:
|
||||
self.llm = LLM(llm_config)
|
||||
self.llm = LLM(llm_config, service_id='resolver')
|
||||
|
||||
def set_strategy(self, strategy: IssueHandlerInterface) -> None:
|
||||
self._strategy = strategy
|
||||
|
||||
Reference in New Issue
Block a user