Skip to content

Commit

Permalink
Update garak/generators/watsonx.py
Browse files Browse the repository at this point in the history
Added version parameter

Co-authored-by: Jeffrey Martin <[email protected]>
Signed-off-by: iamnotcj <[email protected]>
  • Loading branch information
iamnotcj and jmartin-tech authored Jan 30, 2025
1 parent fefcd5e commit 4b252fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garak/generators/watsonx.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _set_bearer_token(self, iam_url="https://iam.cloud.ibm.com/identity/token"):
def _generate_with_project(self, payload):
# Generation via Project ID.

url = self.uri + "/ml/v1/text/generation?version=2023-05-29"
url = self.uri + f"/ml/v1/text/generation?version={self.version}"

body = {
"input": payload,
Expand Down

0 comments on commit 4b252fe

Please sign in to comment.