mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-09 22:10:57 +08:00
feat: Add SystemPromptTemplate edit support (PR #339)
- Allow users to modify SystemPromptTemplate when editing Trader - Enable dynamic strategy switching (default/aggressive/conservative) - Support A/B testing of different trading strategies - Maintain backward compatibility with existing data - Complete full data flow from database through UI to persistence
This commit is contained in:
@@ -213,7 +213,7 @@ export function AITradersPage({ onTraderSelect }: AITradersPageProps) {
|
||||
trading_symbols: data.trading_symbols,
|
||||
custom_prompt: data.custom_prompt,
|
||||
override_base_prompt: data.override_base_prompt,
|
||||
system_prompt_template: data.system_prompt_template, // 添加此字段
|
||||
system_prompt_template: data.system_prompt_template,
|
||||
is_cross_margin: data.is_cross_margin,
|
||||
use_coin_pool: data.use_coin_pool,
|
||||
use_oi_top: data.use_oi_top
|
||||
|
||||
@@ -195,7 +195,7 @@ export interface TraderConfigData {
|
||||
trading_symbols: string;
|
||||
custom_prompt: string;
|
||||
override_base_prompt: boolean;
|
||||
system_prompt_template: string; // 添加系统提示词模板字段
|
||||
system_prompt_template: string;
|
||||
is_cross_margin: boolean;
|
||||
use_coin_pool: boolean;
|
||||
use_oi_top: boolean;
|
||||
|
||||
Reference in New Issue
Block a user