feat(dashboard): 在交易者详情页显示系统提示词模板名称 (#775)

* feat(dashboard): display system prompt template and extract color constant
* style(api): format server.go with go fmt
This commit is contained in:
Lawrence Liu
2025-11-13 01:38:55 +08:00
committed by tangmengqiu
parent ced6c3d9de
commit 217ccb08dd
5 changed files with 139 additions and 49 deletions

View File

@@ -282,6 +282,8 @@ export default function TraderDashboard() {
)
}
const highlightColor = '#60a5fa'
return (
<div>
{/* Trader Header */}
@@ -346,7 +348,7 @@ export default function TraderDashboard() {
style={{
color: selectedTrader.ai_model.includes('qwen')
? '#c084fc'
: '#60a5fa',
: highlightColor,
}}
>
{getModelDisplayName(
@@ -355,6 +357,10 @@ export default function TraderDashboard() {
)}
</span>
</span>
<span></span>
<span>
Prompt: <span className="font-semibold" style={{ color: highlightColor }}>{selectedTrader.system_prompt_template || '-'}</span>
</span>
{status && (
<>
<span></span>

View File

@@ -94,6 +94,7 @@ export interface TraderInfo {
custom_prompt?: string
use_coin_pool?: boolean
use_oi_top?: boolean
system_prompt_template?: string
}
export interface AIModel {