Bläddra i källkod

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

Co-authored-by: jyong <jyong@dify.ai>
tags/0.5.10
Jyong 1 år sedan
förälder
incheckning
4834eae887
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      api/tasks/annotation/enable_annotation_reply_task.py

+ 1
- 1
api/tasks/annotation/enable_annotation_reply_task.py Visa fil

logging.info( logging.info(
click.style('Delete annotation index error: {}'.format(str(e)), click.style('Delete annotation index error: {}'.format(str(e)),
fg='red')) fg='red'))
vector.add_texts(documents)
vector.create(documents)
db.session.commit() db.session.commit()
redis_client.setex(enable_app_annotation_job_key, 600, 'completed') redis_client.setex(enable_app_annotation_job_key, 600, 'completed')
end_at = time.perf_counter() end_at = time.perf_counter()

Laddar…
Avbryt
Spara