Skip to content

[FEATURE_REQUEST] Custom (OpenAI-compatible) Text Completion API #1722

Description

@tnunamak

Have you searched for similar requests?

Yes

Is your feature request related to a problem? If so, please describe.

Compiling a complete prompt from chat messages is difficult. SillyTavern already does it well for Text Completion APIs, it would be nice if I could take advantage of that by connecting SillyTavern to my custom text completion API rather than a custom chat completion API.

Describe the solution you'd like

It is already possible to connect to a Text Generation Web UI Text Completion API, which is Open-AI compatible. It would be great if we could do the same (reuse some of that), but with a custom endpoint, including setting extra parameters and headers (like in the custom Chat Completion API configuration).

Describe alternatives you've considered

I tried using pretending that my custom API was a Text Generation WebUI API, and it kind of worked, but I couldn't set any additional parameters or headers.

Additional context

The details of my specific use case:

I'm am connecting SillyTavern to my custom API, which acts as a kind of middleware before passing the text generation request through to Text Generation WebUI. I can only connect to my custom API's chat completion API.

SillyTavern sends multiple system messages in its Chat Completion API requests:

image

Unfortunately, Text Generation WebUI only includes one system message in the compiled prompt, and drops the others (code). This basically ruins the quality of the responses.

Priority

Medium (Would be very useful)

Is this something you would be keen to implement?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    🦄 Feature Request[ISSUE] Suggestion for new feature, update or change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions