Not able to connect to Databricks #2847
-
I've followed all the instructions to add a custom LLM endpoint. I was able to make it the default one but I am unsuccessful in making it work. I am trying to connect to the Databricks serving endpoints, namely databricks-meta-llama-3-70b-instruct. I got the URL as well the api token. It works in curl but it doesn't in LibreChat. Here is the error: error: [handleAbortError] AI response error; aborting request: 404 status code (no body) I've checked the debug log and when I compare openAI (which works) to the Databricks one, they look similar when it comes to the data structure. Here is the output from the debug log: 2024-05-23T21:40:43.677Z debug: [OpenAIClient] chatCompletion I've also checked that Databricks follows the OpenAI standard. Your help is much appreciated. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
with Mistral API, this happens when unsupported parameters are sent, so this may be the case with Databricks as well. try dropping parameters and see if it helps: https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/custom_endpoint#dropparams |
Beta Was this translation helpful? Give feedback.
-
Hi Danny
How can I log the Post request before it gets sent?
Many thanks
…Sent from my iPhone
On May 24, 2024, at 9:53 AM, Danny Avila ***@***.***> wrote:
it's not different, we send other parameters that are supported by OpenAI by default:
https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/default_params
—
Reply to this email directly, view it on GitHub<#2847 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BIWFVLDRREVLTYPEY7DGO63ZD5A45AVCNFSM6AAAAABIGOWNMOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TKNBXHE2DS>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Alert: This email is from outside of Abacus Insights. Please examine closely before clicking links or opening attachments. When in doubt, report in the #phishing slack channel
IMPORTANT NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature.
|
Beta Was this translation helpful? Give feedback.
-
@aiUser1001 getting to the bottom of this. Here's the root issue, your serving endpoint is not technically compatible. OpenAI Spec expects the baseURL to have a /chat/completions path at the end of the route. so it's making this request: console.log('About to make a request', url, init); log output:
However, since all it takes for this to be compatible, is to drop |
Beta Was this translation helpful? Give feedback.
@aiUser1001
After merging this #2895, the following config values will work for you:
directEndpoint
: beneficial for when a custom endpoint'sbaseURL
is the complete endpoint, without needing the appended path of/c…