Просмотр исходного кода

fix enable annotation reply when collection is None (#2877)

Co-authored-by: jyong <jyong@dify.ai>
tags/0.5.10
Jyong 1 год назад
Родитель
Сommit
4834eae887
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      api/tasks/annotation/enable_annotation_reply_task.py

+ 1
- 1
api/tasks/annotation/enable_annotation_reply_task.py Просмотреть файл

@@ -89,7 +89,7 @@ def enable_annotation_reply_task(job_id: str, app_id: str, user_id: str, tenant_
logging.info(
click.style('Delete annotation index error: {}'.format(str(e)),
fg='red'))
vector.add_texts(documents)
vector.create(documents)
db.session.commit()
redis_client.setex(enable_app_annotation_job_key, 600, 'completed')
end_at = time.perf_counter()

Загрузка…
Отмена
Сохранить