feat(conversation): update agent runner type configuration path to provider_settings

This commit is contained in:
Soulter
2025-11-23 23:05:36 +08:00
parent a6dc458212
commit 5f3c7ed673
+4 -4
View File
@@ -67,7 +67,7 @@ class ConversationCommands:
)
return
agent_runner_type = cfg["provider"]["agent_runner_type"]
agent_runner_type = cfg["provider_settings"]["agent_runner_type"]
if agent_runner_type in THIRD_PARTY_AGENT_RUNNER_KEY:
await sp.remove_async(
scope="umo",
@@ -152,7 +152,7 @@ class ConversationCommands:
async def convs(self, message: AstrMessageEvent, page: int = 1):
"""查看对话列表"""
cfg = self.context.get_config(umo=message.unified_msg_origin)
agent_runner_type = cfg["provider"]["agent_runner_type"]
agent_runner_type = cfg["provider_settings"]["agent_runner_type"]
if agent_runner_type in THIRD_PARTY_AGENT_RUNNER_KEY:
message.set_result(
MessageEventResult().message(
@@ -227,7 +227,7 @@ class ConversationCommands:
async def new_conv(self, message: AstrMessageEvent):
"""创建新对话"""
cfg = self.context.get_config(umo=message.unified_msg_origin)
agent_runner_type = cfg["provider"]["agent_runner_type"]
agent_runner_type = cfg["provider_settings"]["agent_runner_type"]
if agent_runner_type in THIRD_PARTY_AGENT_RUNNER_KEY:
await sp.remove_async(
scope="umo",
@@ -345,7 +345,7 @@ class ConversationCommands:
)
return
agent_runner_type = cfg["provider"]["agent_runner_type"]
agent_runner_type = cfg["provider_settings"]["agent_runner_type"]
if agent_runner_type in THIRD_PARTY_AGENT_RUNNER_KEY:
await sp.remove_async(
scope="umo",