Skip to content

Commit 2ec66ce

Browse files
authored
Merge pull request #12 from LianjiaTech/add_support_purpose
新增支持类型assistants-chat
2 parents d10bccf + 0d8253e commit 2ec66ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/workers/handlers/file_api_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def file_api_task_callback(payload: dict) -> bool:
3737
return True
3838

3939
file_id = data.get('id')
40-
if payload.get('event') == "file.created" and data.get('purpose') == 'assistants':
40+
if payload.get('event') == "file.created" and data.get('purpose') in ['assistants', 'assistants-chat']:
4141
# 更新文件状态为消息入队
4242
file_api_client.update_processing_status('queued', 0, file_id, '', "file_indexing")
4343
return True

0 commit comments

Comments
 (0)