Skip to content

Kobold UI's openai compatible API not working with runpod (Serverless vLLM) #973

Description

@morbidCode

First, I'd like to say that the runpod image you created for koboldcpp is amazing, I'm currently using it. But for larger models, container pods are just too expensive for me, so I am experimenting with serverless.

I found out there is a thing called "Serverless vLLM" where you can deploy models and have an openai compatible API (and this is pay-per-second, only pay for what you use, and is much cheaper).

For experiment, I configured the openchat/openchat-3.5-0106 model using this tutorial (https://docs.runpod.io/serverless/workers/vllm/get-started), and it is working fine. This is just the API though, no UI cause it is serverless.

But then, I found out koboldai.net can handle OpenAI APIs. So I did the following:

And here I got an error.

TypeError: Failed to fetch

I tried manually inputting "openchat/openchat-3.5-0106" on the "use custom" tab, but I got same error when I start generating.

I'm not sure how you fetch the models, but I know that openai has an endpoint that let's you get available models, while runpod/vLLM doesn't have AFAIK. Otherwise I think this should work.

Is there a way to make this work? Say, if we know the model beforehand, just pass the model parameter in the request body and not fetch the model first? IMO this could be perfect, we could deploy large models for much cheeper due to serverless, while getting the benifits of kobold AI (not sure about other frontends like kobold united or silly tavern). I will be happy to help on the JS side.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions