From c4dde6b8e03c660b2bda46eab3c23ce4606dce5e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Apr 2025 16:40:47 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.11.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.4...v0.11.6) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index caee0ff..17b6a52 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.6 hooks: # Run the linter. - id: ruff From f8659f273a7de0b3ef3f5339e1050793ab01940f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Apr 2025 16:40:59 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- nonebot_plugin_fishspeech_tts/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"