Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support region in the watsonx.ai url #268

Conversation

zach-shu
Copy link
Contributor

This PR adds a region parameter to the watsonx.ai open API spec to allow specifying the region when constructing the server URL. It also updates all the starter-kit workspace JSON files that use the watsonx.ai service.

Signed off by: [email protected]

Copy link
Member

@jwm4 jwm4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't had time to test this, but it looks fine to me. I would consider dropping the enum as noted in my comment, but I would be OK with this merging either way. Hopefully @rfazeli or someone has time to test this too.

@@ -121,6 +133,9 @@
},
"stop_sequences": {
"type": "array",
"items": {
"type": "string"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice improvement.

"default": "us-south",
"description": "The region where you want to access watsonx.ai"
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable to me. However, one downside of making this an enum is that it becomes outdated whenever a new region becomes available. Another option would be to drop the enum and just list the current values for it in the description.

Copy link
Member

@rfazeli rfazeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Zach! Looks good to me. Used the new open api specs and the watsonx extension worked fine for me.

@rfazeli rfazeli merged commit bff8513 into watson-developer-cloud:master May 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants