feat: prompt from station
This commit is contained in:
@@ -23,10 +23,9 @@ class TerminalApiController extends Controller
|
||||
public function config(Request $request): JsonResponse
|
||||
{
|
||||
$terminal = $request->attributes->get('terminal');
|
||||
$terminal->load(['prompt', 'station']);
|
||||
$terminal->load('station');
|
||||
|
||||
// 返回原始提示词模板
|
||||
$systemPrompt = $terminal->prompt?->prompt_template ?? '';
|
||||
$systemPrompt = $terminal->prompt_template ?? '';
|
||||
|
||||
// 获取终端所属线站的已发布指引数量(含全局指引)
|
||||
$guideCount = $this->getTerminalGuides($terminal)->count();
|
||||
|
||||
Reference in New Issue
Block a user