Skip to content

TavernAI compatibility mode #1

@Nepherpitou

Description

@Nepherpitou

Hi there! I didn't participated in any opensource activity before, so I don't know how to put it in right way.

I noticed it's pretty simple to add support of KoboldAI/TavernAI conversations:

Instead of modifying whole input string, I need only to replace last own phrase:

<Conversation history>
You: <Bla bla bla conversation context>
CharacterName: <Bla bla bla conversation context>
You: Send me selfie <-- only this line must be modified
CharacterName:

Adjust model response

<Description for image generation>
You: generated context <-- only everything up to this "You:" token must be sent to image generation
CharacterName: more generated context
You: event more

Change Image representation

Unfortunately, TavernAI doesn't support HTML, but it support markdown as well, as chat mode in webui, so it's worth to add markdown output instead of HTML. And it will be more clear in terms of conversation spoiling with tags.

So, I want to add new mode, for example "TavernAI (Experimental)" and implement everything described above. With better code structure:

  • Input modifier based on mode
  • Prompt modifier based on mode
  • Image output formatter based on mode

I can prepare PR with all these changes after I got how to do it 😅 Just want to get your approval before placing efforts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions