Prep 0.13.1 (#29)

* narrate after dialog constrained a bit more so it doesnt create something unrelated

* fix issue where textgenwebui client would come back as status ok even though no model was loaded

* 0.13.1
This commit is contained in:
FInalWombat
2023-11-19 18:58:40 +02:00
committed by GitHub
parent 8fb72fdbe9
commit 816f950afe
4 changed files with 7 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
[tool.poetry]
name = "talemate"
version = "0.13.0"
version = "0.13.1"
description = "AI-backed roleplay and narrative tools"
authors = ["FinalWombat"]
license = "GNU Affero General Public License v3.0"

View File

@@ -2,4 +2,4 @@ from .agents import Agent
from .client import TextGeneratorWebuiClient
from .tale_mate import *
VERSION = "0.13.0"
VERSION = "0.13.1"

View File

@@ -27,6 +27,10 @@ class TextGeneratorWebuiClient(ClientBase):
raise Exception("Could not find model info (wrong api version?)")
response_data = response.json()
model_name = response_data.get("model_name")
if model_name == "None":
model_name = None
return model_name

View File

@@ -14,6 +14,6 @@ Scenario Premise: {{ scene.description }}
<|SECTION:TASK|>
Based on the previous line '{{ last_line }}', create the next line of narration. This line should focus solely on describing sensory details (like sounds, sights, smells, tactile sensations) or external actions that move the story forward. Avoid including any character's internal thoughts, feelings, or dialogue. Your narration should directly respond to '{{ last_line }}', either by elaborating on the immediate scene or by subtly advancing the plot. Generate exactly one sentence of new narration. If the character is trying to determine some state, truth or situation, try to answer as part of the narration.
Be creative and generate something new and interesting.
Be creative and generate something new and interesting, but stay true to the setting and context of the story so far.
<|CLOSE_SECTION|>
{{ set_prepared_response('*') }}