stikkireddy / dbtunnel

Proxy solution to run elegant Web UIs or interact with LLMs natively inside databricks notebooks.
https://stikkireddy.github.io/dbtunnel/
Apache License 2.0
18 stars 7 forks source link

To be able to use databricks cluster as fastapi rest server #19

Closed DixitAdh closed 1 week ago

DixitAdh commented 1 month ago

Hi @stikkireddy I tried to create a fastapi app that can the call the openai endpoint and return the response. I am not sure whether this is possible with dbtunnel fastapi app. Can you please tell me if this functionality can be achieved using this?

stikkireddy commented 1 month ago

hey @DixitAdh dbtunnel is only meant for rendering Web UIs and not rest apis. You cannot access the endpoint outside of the browser since it relies on session cookies. You can use it to test the openapi docs but even that may not work properly out of the box since the url is very different. I would recommend you to wait for lakehouse apps or use another serving solution for rest apis. If you are rendering an application in UI dbtunnel will fit well because it will be accessed via browser.

hope this helps.