Skip to content

Commit 37912f3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1cf3ce7 commit 37912f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nonebot_plugin_fishspeech_tts/config.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ class Config(BaseModel):
1010
tts_chunk_length: Literal["normal", "short", "long"] = "normal"
1111
tts_max_new_tokens: int = 800 # 大约6秒
1212
tts_audio_path: str = "./data/参考音频"
13-
tts_prefix: Optional[str] = None
13+
tts_prefix: str | None = None
1414
tts_is_stream: bool = False # 是否流式传输
1515

1616
# 区分配置
1717
online_api_url: str = "https://api.fish-audio.cn"
18-
online_authorization: Optional[str] = "xxxxx"
18+
online_authorization: str | None = "xxxxx"
1919
online_model_first: bool = True
2020
# 设置代理地址
21-
online_api_proxy: Optional[str] = None
21+
online_api_proxy: str | None = None
2222

2323
offline_api_url: str = "http://127.0.0.1:8000"
2424

0 commit comments

Comments
 (0)