worst bug with visual orchestration

This commit is contained in:
2026-03-06 00:08:10 -05:00
parent 4ce6348978
commit 90a0f93518
3 changed files with 47 additions and 71 deletions

View File

@@ -74,6 +74,12 @@ def generate_tracks(user_request: str, project_config: dict[str, Any], file_item
# Set custom system prompt for this call
old_system_prompt = ai_client._custom_system_prompt
ai_client.set_custom_system_prompt(system_prompt or "")
# Ensure we use the current provider from ai_client state
# Import ai_client module-level to access globals
import src.ai_client as ai_client_module
current_provider = ai_client_module._provider
current_model = ai_client_module._model
ai_client.set_provider(current_provider, current_model)
try:
# 3. Call Tier 1 Model (Strategic - Pro)
# Note: We use gemini-1.5-pro or similar high-reasoning model for Tier 1