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

fix: Support request/response parameters #15

Merged
merged 1 commit into from
Oct 12, 2022
Merged

Conversation

njhill
Copy link
Member

@njhill njhill commented Oct 10, 2022

Motivation

Request/response and tensor-level parameter maps were not properly transcoded between the REST and protobuf representations.

Modifications

  • Add custom logic for marshalling/unmarshalling the parameter maps
  • Extend unit test payloads to cover

Result

Primitive-type parameters are now supported (the gRPC API does not support complex type valued parameters)

Fixes #13

@njhill njhill force-pushed the parameters branch 2 times, most recently from abeb267 to 007c7ef Compare October 10, 2022 23:54
Motivation

Request/response and tensor-level parameter maps were not properly transcoded between the REST and protobuf representations.

Modifications

- Add custom logic for marshalling/unmarshalling the parameter maps
- Extend unit test payloads to cover

Result

Primitive-type parameters are now supported (the gRPC API does not support complex type valued parameters)

Signed-off-by: Nick Hill <[email protected]>
@njhill njhill marked this pull request as ready for review October 12, 2022 18:59
Copy link
Contributor

@chinhuang007 chinhuang007 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks, @njhill !

@chinhuang007
Copy link
Contributor

/lgtm

@njhill njhill merged commit 09acd6d into kserve:main Oct 12, 2022
@njhill njhill deleted the parameters branch October 12, 2022 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Call REST with parameters ?
2 participants