Skip to content
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

Request: Customized API-Servers #172

Closed
d13g4 opened this issue May 18, 2023 · 3 comments
Closed

Request: Customized API-Servers #172

d13g4 opened this issue May 18, 2023 · 3 comments

Comments

@d13g4
Copy link

d13g4 commented May 18, 2023

Hi!
I am running my own llama-based chat-ai on my pc (fastchat with vicuna in my case) which provides a open-ai compatible api.
I would like to have the option to change the api-url to my own; I am sure it could be a really nice feature.
Sorry for posting it as an issue, I didn't know where else - I hope you would consider it anyway.

@max298
Copy link
Collaborator

max298 commented May 19, 2023

You can already do this since #161
Just use a api for llama which is compatible to the openai api like this one and set the reverse proxy (CHATGPT_REVERSE_PROXY) environment of the bot

@d13g4
Copy link
Author

d13g4 commented May 20, 2023

hm. maybe i configured it wrong, but that didn't work. i get a 401 with the bot but have no problems with the api when using curl. i will, if wanted/needed/interested investigate further and attach more information. maybe its a misconfiguration, maybe a bug? in any case: i tried exactly that a couple of hours before posting the message above...

Edit: Nevermind; Had another configuration. I will investigate tomorrow; its very late for me today.

@d13g4
Copy link
Author

d13g4 commented May 24, 2023

I couldn't verify if its working, but I take your word for it. Unfortunately my AI isn't working with LocalAI, because... unsure, but I am not the only one and an issue was already open. Thanks for answering!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants