KoboldAI icon indicating copy to clipboard operation
KoboldAI copied to clipboard

Feature request: Custom OpenAI API URL endpoint

Open DutchEllie opened this issue 2 years ago • 3 comments

Several services have started to make the OpenAI API standard their own. Not only if you (for some unknown reason) want to use Azure OpenAI Service, but most notably Oobabooga has recently migrated their API to the OpenAI standard.

Currently, the endpoint is fixed in code, but a simple edit should make it editable.

DutchEllie avatar Nov 11 '23 12:11 DutchEllie

Currently the priority of United has been local generations, so while nice to have we are currently focusing on improving / fixing the locally run backends instead of adding an online one.

For online backends I recommend using https://lite.koboldai.net which supports this and runs entirely in your browser. If you want something you can keep offline you can view and download its source here : https://github.com/LostRuins/lite.koboldai.net/blob/main/index.html

The existing OpenAI backend we have locally is so outdated it needs to be replaced entirely at this point, since its a much older standard that I think only GooseAI still uses at this point. So unfortunately not a simple edit to expose the field.

henk717 avatar Nov 11 '23 12:11 henk717

Ah, okay. I guess that's why it didn't work when I just edited the field. I was trying to mess with the code to see if I could just shoot in a PR myself, seemed like a simple thing to fix. However, I see that it's also not working because of the outdated standard.

Well, I tried looking at the code myself to see if I could implement it somehow, but it's going way over my head as expected. Thanks for the recommendation of lite.koboldai.net. Maybe I'll try that or see if I can somehow load my GPTQ models from Ooba in your KoboldAI program instead.

DutchEllie avatar Nov 12 '23 09:11 DutchEllie

We support GPTQ out of the box, so all you have to do is move the folder over to our models folder. No need for ooba. Once you load from the folder you can change Huggingface to Exllama for extra speed.

henk717 avatar Nov 12 '23 12:11 henk717