Skip to content

Commit 10f6ffa

Browse files
authored
fix: watsonx self._project_id not getting set (#220)
1 parent 5ac34be commit 10f6ffa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mellea/backends/watsonx.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ def __init__(
9696
base_url = f"{os.environ.get('WATSONX_URL')}"
9797
if api_key is None:
9898
api_key = os.environ.get("WATSONX_API_KEY")
99+
99100
if project_id is None:
100-
self._project_id = os.environ.get("WATSONX_PROJECT_ID")
101+
project_id = os.environ.get("WATSONX_PROJECT_ID")
102+
self._project_id = project_id
101103

102104
self._creds = Credentials(url=base_url, api_key=api_key)
103105
self._kwargs = kwargs

0 commit comments

Comments
 (0)