mirror of
https://github.com/vegu-ai/talemate.git
synced 2025-09-02 18:39:09 +00:00
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:
parent
496eb469db
commit
2ad87f6e8a
5 changed files with 6 additions and 5 deletions
|
@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
|
||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "talemate"
|
name = "talemate"
|
||||||
version = "0.14.0"
|
version = "0.14.1"
|
||||||
description = "AI-backed roleplay and narrative tools"
|
description = "AI-backed roleplay and narrative tools"
|
||||||
authors = ["FinalWombat"]
|
authors = ["FinalWombat"]
|
||||||
license = "GNU Affero General Public License v3.0"
|
license = "GNU Affero General Public License v3.0"
|
||||||
|
|
|
@ -2,4 +2,4 @@ from .agents import Agent
|
||||||
from .client import TextGeneratorWebuiClient
|
from .client import TextGeneratorWebuiClient
|
||||||
from .tale_mate import *
|
from .tale_mate import *
|
||||||
|
|
||||||
VERSION = "0.14.0"
|
VERSION = "0.14.1"
|
||||||
|
|
|
@ -37,7 +37,7 @@ class AgentActionConfig(pydantic.BaseModel):
|
||||||
type: str
|
type: str
|
||||||
label: str
|
label: str
|
||||||
description: 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
|
default_value: Union[int, float, str, bool] = None
|
||||||
max: Union[int, float, None] = None
|
max: Union[int, float, None] = None
|
||||||
min: Union[int, float, None] = None
|
min: Union[int, float, None] = None
|
||||||
|
|
|
@ -274,6 +274,7 @@ class TTSAgent(Agent):
|
||||||
if self.api == "tts":
|
if self.api == "tts":
|
||||||
if not TTS:
|
if not TTS:
|
||||||
return "error"
|
return "error"
|
||||||
|
return "uninitialized"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def max_generation_length(self):
|
def max_generation_length(self):
|
||||||
|
@ -314,7 +315,7 @@ class TTSAgent(Agent):
|
||||||
Called when a conversation is generated
|
Called when a conversation is generated
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not self.enabled:
|
if not self.enabled or not self.ready:
|
||||||
return
|
return
|
||||||
|
|
||||||
if not isinstance(emission.message, (CharacterMessage, NarratorMessage)):
|
if not isinstance(emission.message, (CharacterMessage, NarratorMessage)):
|
||||||
|
|
|
@ -20,7 +20,7 @@ class Client(BaseModel):
|
||||||
|
|
||||||
|
|
||||||
class AgentActionConfig(BaseModel):
|
class AgentActionConfig(BaseModel):
|
||||||
value: Union[int, float, str, bool]
|
value: Union[int, float, str, bool, None] = None
|
||||||
|
|
||||||
class AgentAction(BaseModel):
|
class AgentAction(BaseModel):
|
||||||
enabled: bool = True
|
enabled: bool = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue