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

doc for return response headers from v1 and v2 endpoints #417

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

andyi2it
Copy link
Contributor

@andyi2it andyi2it commented Nov 4, 2024

"Fixes #issue-number" or "Add description of the problem this PR solves"

Proposed Changes

Copy link

netlify bot commented Nov 4, 2024

Deploy Preview for elastic-nobel-0aef7a ready!

Name Link
🔨 Latest commit 371b338
🔍 Latest deploy log https://app.netlify.com/sites/elastic-nobel-0aef7a/deploys/672b416276fe9e0008a647ab
😎 Deploy Preview https://deploy-preview-417--elastic-nobel-0aef7a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -65,6 +70,9 @@ if __name__ == "__main__":
ModelServer().start([model])
```

!!! note
`return_response_headers=True` will be used to return response headers from v1 and v2 endpoints
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
`return_response_headers=True` will be used to return response headers from v1 and v2 endpoints
`return_response_headers=True` can be added to return response headers for v1 and v2 endpoints

Copy link
Member

Choose a reason for hiding this comment

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

This applies to preprocess, predict and postprocess also right?

self,
payload: Dict,
headers: Dict[str, str] = None,
response_headers: Dict[str, str] = None,
Copy link
Member

Choose a reason for hiding this comment

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

Also add the example code you have to add the response header ?

@yuzisun
Copy link
Member

yuzisun commented Nov 11, 2024

/lgtm
/approve

@yuzisun yuzisun merged commit 4bd7084 into kserve:main Nov 11, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants