Fix missing comma in hosts (#8345)

This commit is contained in:
Graham Neubig
2025-05-07 21:54:15 -04:00
committed by GitHub
parent 087438eb3e
commit d5a8d4251c

View File

@@ -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: