fix: missing 'field' argument in get_variable (#4041)

This commit is contained in:
Ítalo Johnny 2024-10-07 17:58:16 -03:00 committed by GitHub
commit 3e3d38a874
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ class ChatOllamaComponent(LCModelComponent):
base_url_load_from_db = base_url_dict.get("load_from_db", False)
base_url_value = base_url_dict.get("value")
if base_url_load_from_db:
base_url_value = self.variables(base_url_value)
base_url_value = self.variables(base_url_value, field_name)
elif not base_url_value:
base_url_value = "http://localhost:11434"
build_config["model_name"]["options"] = self.get_model(base_url_value)