Enhancement: Support for LocalAI endpoint #411
Replies: 5 comments
-
Have you tried setting the OPENAI_REVERSE_PROXY env variable to your localAI endpoint? You can also set OPENAI_MODELS in the env file to what you need sent to the endpoint for "model". If it doesn't matter, you can ignore it. Default example: Let me know if you then run into any errors so I can optimize it if necessary |
Beta Was this translation helpful? Give feedback.
-
I reported because some people also force OpenAI API key as mandatory too. |
Beta Was this translation helpful? Give feedback.
-
It’s not forced as far as I know, it would just throw an error using official OpenAI endpoint let me know! I had trouble running localai personally (generation was too slow) |
Beta Was this translation helpful? Give feedback.
-
Is the repo cloning and building frontend needed or is everything inside the official Docker image? I ask because I see some things tied in the docker-compose file and I am unsure if it is because was also used for building or because the Node API needs to be built and dotEnv file inside its folder despite using it already from the docker-compose file. |
Beta Was this translation helpful? Give feedback.
-
when you run With docker, there are extra env variables set in the compose (as they need to be set specific to docker. the default options already in place will work for most use cases) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Contact Details
[email protected]
What features would you like to see added?
I would like the possibility to use my custom LocalAI instance (check https://github.com/go-skynet/LocalAI).
It is a drop-in replacement for the OpenAI API but without the need of OpenAI API Key since you run this in your own server.
It extends functionalities to use other custom models.
More details
Not as far as I am aware.
Which components are impacted by your request?
UI, Endpoints
Pictures
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions