这是indexloc提供的服务,不要输入任何密码
Skip to content

使用assistant file_search时,如果回复有文件的引用,则会发生Unknown event name: thread.run.incomplete #59

@Karleon-WEI

Description

@Karleon-WEI

文档关联到assistant,启用file_search和stream

[LogHandler] SSE: {"id":"msg_xxx","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":"【272:4†source】","annotations":[{"index":0,"type":"file_citation","text":"【272:4†source】","start_index":357,"end_index":371,"file_citation":{"file_id":"file-xxx","quote":""}}]}}]}} event: THREAD_MESSAGE_DELTA
[LogHandler] SSE: {"id":"msg_xxx","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":"."}}]}} event: THREAD_MESSAGE_DELTA
[LogHandler] SSE: {"id":"msg_xxx","object":"thread.message","created_at":1723696331,"assistant_id":"asst_xxx","thread_id":"thread_xxx","run_id":"run_xxx","status":"completed","incomplete_details":null,"incomplete_at":null,"completed_at":1723696333,"role":"assistant","content":[{"type":"text","text":{"value":"To ... on【272:4†source】.","annotations":[{"type":"file_citation","text":"【272:4†source】","start_index":357,"end_index":371,"file_citation":{"file_id":"file-xxx"}}]}}],"attachments":[],"metadata":{}} event: THREAD_MESSAGE_COMPLETED
[LogHandler] message completed
[LogHandler] SSE: {"id":"step_xxx","object":"thread.run.step","created_at":1723696331,"run_id":"run_xxx","assistant_id":"asst_xxx","thread_id":"thread_xxx","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1723696333,"expires_at":1723696927,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_xxx"}},"usage":{"prompt_tokens":6064,"completion_tokens":92,"total_tokens":6156}} event: THREAD_RUN_STEP_COMPLETED
[LogHandler] error: Unknown event name: thread.run.incomplete

如果没有【272:4†source】等类似标注的回复,就不会发生这个错误

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions