Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/configs/providers/openrouter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ models:
- id: "google/gemini-3-pro-preview"
name: "Gemini 3 Pro Preview"
- id: "x-ai/grok-4.1-fast"
name: "Grok 4.1 Fast(free)"
name: "Grok 4.1 Fast"

# ============================================
# Embedding Models Configuration
Expand Down
10 changes: 10 additions & 0 deletions python/valuecell/server/api/routers/strategy_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
StrategyStatus,
StrategyStatusContent,
StrategyType,
TradingMode,
UserRequest,
)
from valuecell.config.loader import get_config_loader
Expand Down Expand Up @@ -73,6 +74,15 @@ def _safe_config_dump(req: UserRequest) -> dict:
request.trading_config.initial_free_cash = (
request.trading_config.initial_capital
)
if (
request.exchange_config.trading_mode == TradingMode.VIRTUAL
and request.exchange_config.exchange_id not in {None, ""}
):
logger.warning(
"Virtual trading requested on non-default exchange_id '{}'. Ensure this is intended.",
request.exchange_config.exchange_id,
)
request.exchange_config.exchange_id = None
# Ensure we only serialize the core UserRequest fields, excluding conversation_id
user_request = UserRequest(
llm_model_config=request.llm_model_config,
Expand Down