[GH-ISSUE #18] Cluade侧遭遇意外Empty content message #9

Open
opened 2026-02-27 01:55:49 +03:00 by kerem · 4 comments
Owner

Originally created by @lava-lake on GitHub (Feb 6, 2025).
Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/18

deepseek获取推理内容后,好像访问claude的时候出问题...

deepclaude | 2025-02-06 16:21:00 - DeepClaude - DEBUG - 提取推理内容: confirm
deepclaude | 2025-02-06 16:21:00 - DeepClaude - DEBUG - 提取推理内容: this
deepclaude | 2025-02-06 16:21:00 - DeepClaude - DEBUG - 提取推理内容:.
deepclaude |
deepclaude | 2025-02-06 16:21:00 - DeepClaude - INFO - 提取内容信息,推理阶段结束:
deepclaude |
deepclaude |
deepclaude | 2025-02-06 16:21:00 - DeepClaude - INFO - DeepSeek 推理完成,收集到的推理内容长度:2754
deepclaude | 2025-02-06 16:21:00 - DeepClaude - INFO - DeepSeek 任务处理完成,标记结束
deepclaude | 2025-02-06 16:21:00 - DeepClaude - DEBUG - 获取到推理内容,内容长度:2754
deepclaude | 2025-02-06 16:21:00 - DeepClaude - INFO - 使用 Anthropic API 作为 Claude 3.5 Sonnet 供应商
deepclaude | 2025-02-06 16:21:01 - DeepClaude - ERROR - API 请求失败: {"type":"error","error":{"type":"invalid_request_error","message":"messages.1: all messages must have non-empty content except for the optional final assistant message"}}

Originally created by @lava-lake on GitHub (Feb 6, 2025). Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/18 deepseek获取推理内容后,好像访问claude的时候出问题... deepclaude | 2025-02-06 16:21:00 - DeepClaude - DEBUG - 提取推理内容: confirm deepclaude | 2025-02-06 16:21:00 - DeepClaude - DEBUG - 提取推理内容: this deepclaude | 2025-02-06 16:21:00 - DeepClaude - DEBUG - 提取推理内容:. deepclaude | deepclaude | 2025-02-06 16:21:00 - DeepClaude - INFO - 提取内容信息,推理阶段结束: deepclaude | deepclaude | deepclaude | 2025-02-06 16:21:00 - DeepClaude - INFO - DeepSeek 推理完成,收集到的推理内容长度:2754 deepclaude | 2025-02-06 16:21:00 - DeepClaude - INFO - DeepSeek 任务处理完成,标记结束 deepclaude | 2025-02-06 16:21:00 - DeepClaude - DEBUG - 获取到推理内容,内容长度:2754 deepclaude | 2025-02-06 16:21:00 - DeepClaude - INFO - 使用 Anthropic API 作为 Claude 3.5 Sonnet 供应商 deepclaude | 2025-02-06 16:21:01 - DeepClaude - ERROR - API 请求失败: {"type":"error","error":{"type":"invalid_request_error","message":"messages.1: all messages must have non-empty content except for the optional final assistant message"}}
Author
Owner

@lava-lake commented on GitHub (Feb 6, 2025):

Image
Image

<!-- gh-comment-id:2640319362 --> @lava-lake commented on GitHub (Feb 6, 2025): ![Image](https://github.com/user-attachments/assets/3a3cbb39-c757-4b05-9ab2-585a5684d1d7) ![Image](https://github.com/user-attachments/assets/06360a18-b49c-4aea-9395-92bcef2f9414)
Author
Owner

@ErlichLiu commented on GitHub (Feb 6, 2025):

确实,但目前还没去看具体的是哪一个部分导致的数据会出现空导致的问题,这是 Claude 对数据结构的要求。虽然我们也可以做一些数据兼容、删除、过滤这些操作,不过这可能会在上下文当中删除掉一些重要信息。大家如果有更详细的可能问题请继续反馈

<!-- gh-comment-id:2641134142 --> @ErlichLiu commented on GitHub (Feb 6, 2025): 确实,但目前还没去看具体的是哪一个部分导致的数据会出现空导致的问题,这是 Claude 对数据结构的要求。虽然我们也可以做一些数据兼容、删除、过滤这些操作,不过这可能会在上下文当中删除掉一些重要信息。大家如果有更详细的可能问题请继续反馈
Author
Owner

@GowayLee commented on GitHub (Feb 26, 2025):

问题再次复现 #50 重新开启issue

<!-- gh-comment-id:2684686623 --> @GowayLee commented on GitHub (Feb 26, 2025): 问题再次复现 #50 重新开启issue
Author
Owner

@ErlichLiu commented on GitHub (Feb 27, 2025):

我们可以粗暴的把所有空的消息全删掉

<!-- gh-comment-id:2687655083 --> @ErlichLiu commented on GitHub (Feb 27, 2025): 我们可以粗暴的把所有空的消息全删掉
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DeepClaude#9
No description provided.