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