Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: undefined attribute 'query' on MessageAnnotation (#13852)

Yeuolybea10b4356db
diff --git a/api/models/model.py b/api/models/model.py
index aaed9ded770..7591e664648 100644
--- a/api/models/model.py
+++ b/api/models/model.py
@@ -1289,7 +1289,7 @@ class MessageAnnotation(Base):
return account
-class AppAnnotationHitHistory(Base):
+class AppAnnotationHitHistory(db.Model): # type: ignore[name-defined]
__tablename__ = "app_annotation_hit_histories"
__table_args__ = (
db.PrimaryKeyConstraint("id", name="app_annotation_hit_histories_pkey"),