mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-14 14:31:00 +00:00
fix: claude 请求失败
This commit is contained in:
@@ -69,7 +69,7 @@ class AnthropicMessages(api.LLMAPIRequester):
|
|||||||
elif isinstance(m.content, list):
|
elif isinstance(m.content, list):
|
||||||
# 删除m.content中的type!=text的元素
|
# 删除m.content中的type!=text的元素
|
||||||
m.content = [
|
m.content = [
|
||||||
c for c in m.content if c.get("type") == "text"
|
c for c in m.content if c.type == "text"
|
||||||
]
|
]
|
||||||
|
|
||||||
if len(m.content) > 0:
|
if len(m.content) > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user