| | |
| | | description = Column(Text) # 说明 |
| | | icon = Column(Text) # 图标 |
| | | status = Column(String(1)) # 状态 |
| | | dialog_type = Column(String(1)) # # 平台 |
| | | # dialog_type = Column(String(1)) # # 平台 |
| | | |
| | | def get_id(self): |
| | | return str(self.id) |
| | |
| | | def to_json(self): |
| | | return { |
| | | 'id': self.id, |
| | | 'create_time': self.create_time, |
| | | 'create_date': self.create_date, |
| | | 'update_time': self.update_time, |
| | | 'update_date': self.update_date, |
| | | 'tenant_id': self.tenant_id, |
| | | 'name': self.name, |
| | | 'description': self.description, |
| | | 'icon': self.icon, |
| | | 'language': self.language, |
| | | 'llm_id': self.llm_id, |
| | | 'prompt_type': self.prompt_type, |
| | | 'prompt_config': self.prompt_config, |
| | | 'similarity_threshold': self.similarity_threshold, |
| | | 'vector_similarity_weight': self.vector_similarity_weight, |
| | | 'top_n': self.top_n, |
| | | 'top_k': self.top_k, |
| | | 'do_refer': self.do_refer, |
| | | 'kb_ids': self.kb_ids, |
| | | 'status': self.status |
| | | } |