diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index caee0ff..58ff783 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: check-added-large-files # 检查提交中是否包含过大的文件 - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.4 + rev: v0.11.7 hooks: # Run the linter. - id: ruff diff --git a/nonebot_plugin_fishspeech_tts/config.py b/nonebot_plugin_fishspeech_tts/config.py index a612e0f..0f85a3a 100644 --- a/nonebot_plugin_fishspeech_tts/config.py +++ b/nonebot_plugin_fishspeech_tts/config.py @@ -10,15 +10,15 @@ class Config(BaseModel): tts_chunk_length: Literal["normal", "short", "long"] = "normal" tts_max_new_tokens: int = 800 # 大约6秒 tts_audio_path: str = "./data/参考音频" - tts_prefix: Optional[str] = None + tts_prefix: str | None = None tts_is_stream: bool = False # 是否流式传输 # 区分配置 online_api_url: str = "https://api.fish-audio.cn" - online_authorization: Optional[str] = "xxxxx" + online_authorization: str | None = "xxxxx" online_model_first: bool = True # 设置代理地址 - online_api_proxy: Optional[str] = None + online_api_proxy: str | None = None offline_api_url: str = "http://127.0.0.1:8000"