-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: mimic openai API endpoints #10
Comments
Cross post in: mckaywrigley/chatbot-ui#432 |
wonderful idea, I'd be more than happy to have it work in a way that is compatible with chatbot-ui, I'll try to have a look, but - on the other hand I'm concerned if the openAI api does some assumptions (e.g. prefixed prompts, roles, etc) at the moment the llama-cli API is very simple, as you need to inject your prompt with the input text. Although we can just offer an opinionated setup, e.g. by injecting prompts, etc. |
alright, master is capable to handle multi-model, and mimics the openAI api. however, chatbot-ui seems to not be completely follow the openAI spec so I'm struggling to make it work with. however, https://github.com/Niek/chatgpt-web follow closely the spec and seems to work just fine. I've just contacted upstream as would be super-nice if they could list the available models returned by the API and avoid filtering it. |
I can now see all the models when using the master branch. thank you. Nice work! Couple of suggestions: Feature Request: |
Good points! Lately I had just few cycles to dedicate to it and had less time here, hence I rushed this a bit, sorry about that!
That sounds a great addition! could you please file separate issues? So we can track them down and tackle those separately. My plan indeed was to close this issue once got the documentation and a tag with all the new features in! |
Nice work @mudler |
If you want to test out chatgpt-web with your cli/api: https://github.com/mkellerman/chatgpt-web/tree/feature/add-llama-cli |
That's super-nice! loving it! you are so fast :) I've opened Niek/chatgpt-web#105 upstream to track it, maybe worth mentioning your branch directly? Let me close this issue, I've just tagged |
I'm using this docker compose file to deploy a front end UI that is very similar to the ChatGPT UI interface.
Would it be possible to add API endpoints to mimic the same output as openai? Not sure if it's easier to do here, or to to add a proxy that converts the in/out of each call. But i see value in other tools that normally call openai apis, could simply targer this local instance.
Your thoughts?
The text was updated successfully, but these errors were encountered: