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

Add Auth Token to RuntimeEndpoint #162

Merged
merged 5 commits into from
Feb 8, 2024
Merged

Conversation

nivibilla
Copy link
Contributor

Hi,

So I had an interesting use case. I was deploying this model for testing on a databricks notebook. And I was trying to use the sglang library locally. To do this the databricks_access_token must be passed as the auth token in the header.

If im calling the endpoint via CURL its fine since I can manually add it.

But I wasn't able to do this via the RuntimeEnpoint class. Hence I added this functionality into the class itself as an optional variable which defaults to None.

@nivibilla nivibilla changed the title Add Auth Token Add Auth Token to RuntimeEndpoint Feb 7, 2024
@nivibilla nivibilla changed the title Add Auth Token to RuntimeEndpoint Add Auth Token to RuntimeEndpoint Feb 7, 2024
@Ying1123 Ying1123 merged commit 405f26b into sgl-project:main Feb 8, 2024
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.

2 participants