mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-06 12:30:59 +08:00
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:
committed by
tangmengqiu
parent
ced6c3d9de
commit
217ccb08dd
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user