Update voice libary key form
This commit is contained in:
@@ -28,6 +28,8 @@ class Voice(Base):
|
||||
description: Mapped[str] = mapped_column(String(255), nullable=False)
|
||||
model: Mapped[Optional[str]] = mapped_column(String(128), nullable=True) # 厂商语音模型标识
|
||||
voice_key: Mapped[Optional[str]] = mapped_column(String(128), nullable=True) # 厂商voice_key
|
||||
api_key: Mapped[Optional[str]] = mapped_column(String(512), nullable=True) # 每个声音独立 API key
|
||||
base_url: Mapped[Optional[str]] = mapped_column(String(512), nullable=True) # 每个声音独立 OpenAI-compatible base_url
|
||||
speed: Mapped[float] = mapped_column(Float, default=1.0)
|
||||
gain: Mapped[int] = mapped_column(Integer, default=0)
|
||||
pitch: Mapped[int] = mapped_column(Integer, default=0)
|
||||
@@ -38,17 +40,6 @@ class Voice(Base):
|
||||
user = relationship("User", foreign_keys=[user_id])
|
||||
|
||||
|
||||
class VendorCredential(Base):
|
||||
__tablename__ = "vendor_credentials"
|
||||
|
||||
vendor_key: Mapped[str] = mapped_column(String(64), primary_key=True)
|
||||
vendor_name: Mapped[str] = mapped_column(String(128), nullable=False)
|
||||
api_key: Mapped[str] = mapped_column(String(512), nullable=False)
|
||||
base_url: Mapped[Optional[str]] = mapped_column(String(512), nullable=True)
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime, default=datetime.utcnow)
|
||||
updated_at: Mapped[datetime] = mapped_column(DateTime, default=datetime.utcnow)
|
||||
|
||||
|
||||
# ============ LLM Model ============
|
||||
class LLMModel(Base):
|
||||
__tablename__ = "llm_models"
|
||||
|
||||
Reference in New Issue
Block a user