diff --git a/openhands/llm/llm.py b/openhands/llm/llm.py index ca4aa079a5..5b9d5807b9 100644 --- a/openhands/llm/llm.py +++ b/openhands/llm/llm.py @@ -662,7 +662,7 @@ class LLM(RetryMixin, DebugMixin): boolean: True if executing a local model. """ if self.config.base_url is not None: - for substring in ['localhost', '127.0.0.1' '0.0.0.0']: + for substring in ['localhost', '127.0.0.1', '0.0.0.0']: if substring in self.config.base_url: return True elif self.config.model is not None: