Compatibility with llama-cpp-python and add documentation #1779
-
What happened?llama-cpp-python has a OpenAI compatible server I am serving a model as:
Output from llama-cpp-python:
I have checked http://192.168.3.113:7836/docs works # the llama-cpp-python openapi spec endpoint with this ip on my system This is my librechat output when I try to chat with my model
This is my librechat.yaml configuration
Possibilities:
Steps to ReproduceStated above What browsers are you seeing the problem on?No response Relevant log outputNo response ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
To be honest, I've never setup llama-cpp-python for use in LibreChat, which is why there are compatibility/documentation issues. My next big priority will be open source LLMs, and I will look into this. Also, maybe the compatibility is better addressed to openai-node, as the project relies on the official OpenAI node SDK, and llama-cpp-python compatibility with that library would mean compatibility with many other projects using openai-node. |
Beta Was this translation helpful? Give feedback.
-
@0x33taji I've managed to get it working -- the key was using Run command
librechat.yaml
|
Beta Was this translation helpful? Give feedback.
-
Thanks vladiliescu for your promptness!! But unfortunately it did not work for me. 🥲 As you can see in my post I did test the [IP] and [IP]/v1. I tested again now, no combination worked. However, if your test is holistic with the openai client sdk on the endpoints of llama-cpp-python and Librechat was not tested using that package, then I think the llama-cpp-python part of the issue puzzle is certain that the API implementation of the project is complete as of this time of writing. I would ask @danny-avila to check on this when time permits. Take your time. No worries 😄 and thanks for the UI. |
Beta Was this translation helpful? Give feedback.
@0x33taji I've managed to get it working -- the key was using
http://localhost:8000/v1
forbaseUrl
Run command
librechat.yaml