feat: 删除 知识库-终端 关联, 简化 prompt 配置
This commit is contained in:
@@ -21,19 +21,6 @@ class KnowledgeBase extends Model
|
||||
'status',
|
||||
];
|
||||
|
||||
/**
|
||||
* 获取关联的终端
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||
*/
|
||||
public function terminals()
|
||||
{
|
||||
return $this->belongsToMany(Terminal::class, 'terminal_knowledge_bases')
|
||||
->withPivot('priority')
|
||||
->withTimestamps()
|
||||
->orderBy('priority');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取知识库下的文档
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user