update: 修改anthropic请求体

This commit is contained in:
taylor
2024-10-14 17:38:46 +08:00
parent 2fd5394773
commit 5506fb83bb
2 changed files with 5 additions and 6 deletions

View File

@@ -133,8 +133,8 @@ async def get_chat_context(system_context: deque, plugin: AbsExtraConfigPlugin,
获取总消息上下文
"""
async def get_context(plugin: AbsExtraConfigPlugin, platform: Platform, evt: MessageEvent) -> deque:
system_context = get_system_context(plugin, platform, evt)
chat_context = get_chat_context(system_context, plugin, platform, evt)
system_context = await get_system_context(plugin, platform, evt)
chat_context = await get_chat_context(system_context, plugin, platform, evt)
return system_context + chat_context
async def generate_context_messages(plugin: Plugin, platform: Platform, evt: MessageEvent) -> Generator[MessageEvent, None, None]: