extractBaseURL()
breaks deep nested baseURL like Huawei Cloud ModelArts Studio
#7582
ks4na
started this conversation in
Feature Requests & Suggestions
Replies: 1 comment
-
Not all URL patterns are supported out of the box. In this case, you need to make use of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
The function
extractBaseURL()
in LibreChat assumes/v1
is the consistent entry point and attempts to truncate anything beyond that. However, some providers (such as HuaweiCloud ModelArts Studio + DeepSeek-R1) use deeper paths with/v1
appearing multiple times.Example real API endpoint (UUID masked):
When this is passed as baseURL,
extractBaseURL()
wrongly shortens it to:which leads to a 404 error from the API server.
Version Information
$ sudo docker images | grep librechat ghcr.io/danny-avila/librechat-dev latest b74cbb915050 17 hours ago 1.03GB ghcr.io/danny-avila/librechat-rag-api-dev-lite latest e78acb5d033c 2 weeks ago 1.28GB
Steps to Reproduce
Start LibreChat and go to the chat interface.
Select the custom provider “Deepseek” and enter a prompt like "Hello".
Observe that the UI displays a error message.
Check the server debug logs:
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions