-
Notifications
You must be signed in to change notification settings - Fork 16.4k
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
LLM wrapper for Databricks #5142
Conversation
exc_info=True) | ||
return context | ||
|
||
def get_default_host(): |
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 will make a follow-up to create Databricks utility methods for getting the host and api_token.
5d00c19
to
350db0f
Compare
LGTM except for some minor comments 👍 |
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 except for two minor comments
Co-authored-by: Gengliang Wang <[email protected]>
Co-authored-by: Gengliang Wang <[email protected]>
@dev2049 I addressed your comments. This is ready for another pass. Thanks!! |
thanks @mengxr @gengliangwang! |
host = values["host"] | ||
cluster_id = values["cluster_id"] | ||
port = values["cluster_driver_port"] | ||
api_url = f"https://{host}/driver-proxy-api/o/0/{cluster_id}/{port}" |
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.
@mengxr This might have a problem with the databricks driver proxy api with /o/0. The databricks repl context provided apiUrl is something like http://oregon.staging.databricks.com/. From my set up it seems that this does not work with the /o/0.
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.
This works fine with databricks notebook context's url address. Resolve now.
This PR adds LLM wrapper for Databricks. It supports two endpoint types: * serving endpoint * cluster driver proxy app An integration notebook is included to show how it works. Co-authored-by: Davis Chase <[email protected]> Co-authored-by: Gengliang Wang <[email protected]> Co-authored-by: Dev 2049 <[email protected]>
This PR adds LLM wrapper for Databricks. It supports two endpoint types:
An integration notebook is included to show how it works.
cc: @hwchase17 @agola11 @gengliangwang