mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2025-09-13 00:29:59 +00:00
Initial commit
This commit is contained in:
commit
18c42e67df
247 changed files with 53775 additions and 0 deletions
18
ktransformers/server/models/assistants/threads.py
Normal file
18
ktransformers/server/models/assistants/threads.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
from sqlalchemy import JSON, Column, Integer, String
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
from ktransformers.server.utils.sql_utils import Base
|
||||
|
||||
|
||||
class Thread(Base):
|
||||
__tablename__ = "threads"
|
||||
|
||||
id = Column(String, primary_key=True, index=True)
|
||||
object = Column(String, default="thread")
|
||||
created_at = Column(Integer)
|
||||
|
||||
tool_resources = Column(JSON, nullable=True)
|
||||
meta_data = Column(JSON, nullable=True)
|
||||
|
||||
runs = relationship("Run", back_populates="thread")
|
||||
messages = relationship("Message", back_populates="thread")
|
Loading…
Add table
Add a link
Reference in a new issue