Skip to content

Commit

Permalink
fix space_id
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Sep 16, 2024
1 parent e40ba32 commit 45eee76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/ibm/langchain_ibm/llms.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ def validate_environment(cls, values: Dict) -> Any:
)
or ""
)
values["space_id"] = getattr(
getattr(values["watsonx_model"], "_client"), "default_space_id"
values["space_id"] = (
getattr(getattr(values["watsonx_model"], "_client"), "default_space_id")
or ""
)
values["params"] = getattr(values["watsonx_model"], "params")

Expand Down

0 comments on commit 45eee76

Please sign in to comment.