-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add support for overriding API version #114
Conversation
This API will be required for authors to use to try function calling while the backend support is still in version `v1beta`. Add a RequestOptions class. For now this supports only the `apiVersion` configuration. In the future this may add a `timeout` (#44) if implement a deeper HTTP timeout functionality than `Future.timeout`. Add a utility for VertexAI SDK to pass a callback instead of a single URI.
I had implemented this originally with the intent to support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm w/ some dartdoc suggestions
required ApiClient client, | ||
List<SafetySetting> safetySettings = const [], | ||
GenerationConfig? generationConfig, | ||
RequestOptions? requestOptions, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do think we'll have more options, this lgtm. Otherwise we may want to just simplify this to apiVersion
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do think it's likely we'll add more options at some point. I'm pretty comfortable starting with this design even if there is only a single configuration because it matches exactly the design in other languages (although some of the other languages already support timeout).
This API will be required for authors to use to try function calling
while the backend support is still in version
v1beta
.Add a RequestOptions class. For now this supports only the
apiVersion
configuration. In the future this may add a
timeout
(#44) if implementa deeper HTTP timeout functionality than
Future.timeout
.