[GH-ISSUE #32] oneapi模式每条claude消息后都有{"error": "AttributeError: 'str' object has no attribute 'decode'"} #20

Closed
opened 2026-02-27 01:55:51 +03:00 by kerem · 2 comments
Owner

Originally created by @tohsakrat on GitHub (Feb 13, 2025).
Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/32

如题,把log等级调到debugger看了下打印信息,和消息正文连在一起的,看了下字符串拼接部分是用\n来join的,没有\n说明不是消息拼接过程中的问题,是哪里解码出问题了吗?
别的还好,但是总是有这个东西会非常浪费token

Image

Originally created by @tohsakrat on GitHub (Feb 13, 2025). Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/32 如题,把log等级调到debugger看了下打印信息,和消息正文连在一起的,看了下字符串拼接部分是用\n来join的,没有\n说明不是消息拼接过程中的问题,是哪里解码出问题了吗? 别的还好,但是总是有这个东西会非常浪费token ![Image](https://github.com/user-attachments/assets/be692334-2d1b-43c2-bddb-8c6b020e6a5b)
kerem closed this issue 2026-02-27 01:55:51 +03:00
Author
Owner

@tohsakrat commented on GitHub (Feb 13, 2025):

是这一行造成的

Image

open-webui不兼容这样的空消息,所以在本地报了个错,然后污染了上下文

<!-- gh-comment-id:2656743787 --> @tohsakrat commented on GitHub (Feb 13, 2025): 是这一行造成的 ![Image](https://github.com/user-attachments/assets/f214dac7-0864-49ed-a20c-01aea4d261f2) open-webui不兼容这样的空消息,所以在本地报了个错,然后污染了上下文
Author
Owner

@tohsakrat commented on GitHub (Feb 13, 2025):

总之自己改了一下

Image

<!-- gh-comment-id:2656815635 --> @tohsakrat commented on GitHub (Feb 13, 2025): 总之自己改了一下 ![Image](https://github.com/user-attachments/assets/439d9ac1-4207-4361-9d7b-e25c2ae5096a)
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#20
No description provided.