mirror of
https://github.com/vegu-ai/talemate.git
synced 2025-12-21 14:09:29 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ad87f6e8a |
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user