Skip to content

Commit 636e402

Browse files
jakeloroccotuliocoppola
authored andcommitted
fix: watsonx self._project_id not getting set (generative-computing#220)
1 parent 8c8f94c commit 636e402

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)