Prep 0.14.1 (#35)

* tts dont try to play sound if agent not ready

* tts: flag agent as uninitlized if no voice is selected
tts: fix some config issues with voice selection

* 0.14.1
This commit is contained in:
fiwo 2023-11-25 00:13:33 +02:00 committed by GitHub
parent 496eb469db
commit 2ad87f6e8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 5 deletions

View file

@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
[tool.poetry]
name = "talemate"
version = "0.14.0"
version = "0.14.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.14.0"
VERSION = "0.14.1"

View file

@ -37,7 +37,7 @@ class AgentActionConfig(pydantic.BaseModel):
type: str
label: str
description: str = ""
value: Union[int, float, str, bool, None]
value: Union[int, float, str, bool, None] = None
default_value: Union[int, float, str, bool] = None
max: Union[int, float, None] = None
min: Union[int, float, None] = None

View file

@ -274,6 +274,7 @@ class TTSAgent(Agent):
if self.api == "tts":
if not TTS:
return "error"
return "uninitialized"
@property
def max_generation_length(self):
@ -314,7 +315,7 @@ class TTSAgent(Agent):
Called when a conversation is generated
"""
if not self.enabled:
if not self.enabled or not self.ready:
return
if not isinstance(emission.message, (CharacterMessage, NarratorMessage)):

View file

@ -20,7 +20,7 @@ class Client(BaseModel):
class AgentActionConfig(BaseModel):
value: Union[int, float, str, bool]
value: Union[int, float, str, bool, None] = None
class AgentAction(BaseModel):
enabled: bool = True