mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-16 01:06:59 +08:00
Supports custom system prompts and custom models.
This commit is contained in:
@@ -125,7 +125,7 @@ export function AITradersPage({ onTraderSelect }: AITradersPageProps) {
|
||||
|
||||
const handleCreateTrader = async (data: CreateTraderRequest) => {
|
||||
try {
|
||||
const model = allModels?.find(m => m.provider === data.ai_model_id);
|
||||
const model = allModels?.find(m => m.id === data.ai_model_id);
|
||||
const exchange = allExchanges?.find(e => e.id === data.exchange_id);
|
||||
|
||||
if (!model?.enabled) {
|
||||
@@ -162,7 +162,7 @@ export function AITradersPage({ onTraderSelect }: AITradersPageProps) {
|
||||
if (!editingTrader) return;
|
||||
|
||||
try {
|
||||
const model = enabledModels?.find(m => m.provider === data.ai_model_id);
|
||||
const model = enabledModels?.find(m => m.id === data.ai_model_id);
|
||||
const exchange = enabledExchanges?.find(e => e.id === data.exchange_id);
|
||||
|
||||
if (!model) {
|
||||
|
||||
Reference in New Issue
Block a user