Skip to content

Commit 5eab254

Browse files
committed
add:执行ruff
1 parent b98d0a8 commit 5eab254

2 files changed

Lines changed: 12 additions & 13 deletions

File tree

astrbot/core/agent/handoff.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def __init__(
1515
tool_description: str | None = None,
1616
**kwargs,
1717
) -> None:
18-
1918
# Avoid passing duplicate `description` to the FunctionTool dataclass.
2019
# Some call sites (e.g. SubAgentOrchestrator) pass `description` via kwargs
2120
# to override what the main agent sees, while we also compute a default

astrbot/core/config/default.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,62 +1537,62 @@ class ChatProviderTemplate(TypedDict):
15371537
"gemini_tts_api_key": {
15381538
"description": "Google Gemini TTS API 密钥",
15391539
"type": "string",
1540-
"hint": "请在 Google Cloud Console 获取 Gemini TTS API 密钥,用于身份验证和服务调用。"
1540+
"hint": "请在 Google Cloud Console 获取 Gemini TTS API 密钥,用于身份验证和服务调用。",
15411541
},
15421542
"gemini_tts_api_base": {
15431543
"description": "Google Gemini TTS API 基础地址",
15441544
"type": "string",
1545-
"hint": "Gemini TTS 服务的 API 接口地址,一般使用默认值即可,特殊网络环境可能需要修改。"
1545+
"hint": "Gemini TTS 服务的 API 接口地址,一般使用默认值即可,特殊网络环境可能需要修改。",
15461546
},
15471547
"gemini_tts_timeout": {
15481548
"description": "Google Gemini TTS 超时时间",
15491549
"type": "integer",
1550-
"hint": "设置 API 请求超时时间(秒),建议 20 秒,网络较差时可适当增加。"
1550+
"hint": "设置 API 请求超时时间(秒),建议 20 秒,网络较差时可适当增加。",
15511551
},
15521552
"gemini_tts_model": {
15531553
"description": "Google Gemini TTS 模型选择",
15541554
"type": "string",
1555-
"hint": "选择使用的 TTS 模型,默认为 gemini-2.5-flash-preview-tts,不同模型支持的特性可能不同。"
1555+
"hint": "选择使用的 TTS 模型,默认为 gemini-2.5-flash-preview-tts,不同模型支持的特性可能不同。",
15561556
},
15571557
"gemini_tts_prefix": {
15581558
"description": "Google Gemini TTS 前缀设置",
15591559
"type": "string",
1560-
"hint": "可选参数,用于在合成语音前添加特定前缀文本。"
1560+
"hint": "可选参数,用于在合成语音前添加特定前缀文本。",
15611561
},
15621562
"gemini_tts_voice_name": {
15631563
"description": "Google Gemini TTS 音色选择",
15641564
"type": "string",
1565-
"hint": "选择合成语音的音色,默认为 Leda,不同音色效果可参考官方文档。"
1565+
"hint": "选择合成语音的音色,默认为 Leda,不同音色效果可参考官方文档。",
15661566
},
15671567
"character": {
15681568
"description": "GPT-SoVITS 角色选择",
15691569
"type": "string",
1570-
"hint": "选择要使用的语音角色,需要提前在 GPT-SoVITS 服务中配置好对应的角色模型。"
1570+
"hint": "选择要使用的语音角色,需要提前在 GPT-SoVITS 服务中配置好对应的角色模型。",
15711571
},
15721572
"emotion": {
15731573
"description": "GPT-SoVITS 情感选择",
15741574
"type": "string",
1575-
"hint": "选择合成语音的情感风格,默认为 default,具体可选情感取决于角色模型的支持。"
1575+
"hint": "选择合成语音的情感风格,默认为 default,具体可选情感取决于角色模型的支持。",
15761576
},
15771577
"edge-tts-voice": {
15781578
"description": "Edge TTS 音色选择",
15791579
"type": "string",
1580-
"hint": "选择微软 Edge TTS 的语音角色,默认为 zh-CN-XiaoxiaoNeural,可参考微软官方文档获取完整列表。"
1580+
"hint": "选择微软 Edge TTS 的语音角色,默认为 zh-CN-XiaoxiaoNeural,可参考微软官方文档获取完整列表。",
15811581
},
15821582
"rate": {
15831583
"description": "Edge TTS 语速调节",
15841584
"type": "string",
1585-
"hint": "调整语音语速,格式如 +0% 表示正常语速,可增减百分比进行调整。"
1585+
"hint": "调整语音语速,格式如 +0% 表示正常语速,可增减百分比进行调整。",
15861586
},
15871587
"volume": {
15881588
"description": "Edge TTS 音量调节",
15891589
"type": "string",
1590-
"hint": "调整语音音量,格式如 +0% 表示正常音量,可增减百分比进行调整。"
1590+
"hint": "调整语音音量,格式如 +0% 表示正常音量,可增减百分比进行调整。",
15911591
},
15921592
"pitch": {
15931593
"description": "Edge TTS 音调调节",
15941594
"type": "string",
1595-
"hint": "调整语音音调,格式如 +0Hz 表示正常音调,可增减 Hz 值进行调整。"
1595+
"hint": "调整语音音调,格式如 +0Hz 表示正常音调,可增减 Hz 值进行调整。",
15961596
},
15971597
"genie_onnx_model_dir": {
15981598
"description": "ONNX Model Directory",

0 commit comments

Comments
 (0)