The Correct Cohere Base URL #5730
Unanswered
febryanvaldo
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Got an update from the Cohere team. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Would be great if the base url could also respect an env variable for overriding with a custom service. It would comply with other base url overriding conventions in the repo. |
Beta Was this translation helpful? Give feedback.
4 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.
-
Hello there,
Right now the Base URL that librechat uses for Cohere (Custom Endpoints) is
https://api.cohere.ai/v1
, and it's working perfectly fine on my end.But in their official documentation, the Base URL that should be used is either
https://api.cohere.com/v1
(legacy) orhttps://api.cohere.com/v2
(new one). If you look closely, there is a slight difference in the domain, LibreChat uses.ai
, while official docs uses.com
.When i try to use either
https://api.cohere.com/v1
orhttps://api.cohere.com/v2
for the Base URLbaseURL: https://api.cohere.com/v2
in librechat.yaml, it cannot, it gave me error.But when i try to CURL or use python script to get the list of available models
https://api.cohere.com/v2/models
, it working fine. It's kinda weird. What do you think about this situation?Beta Was this translation helpful? Give feedback.
All reactions