docs: Add session debrief about test fixes and MCP tool lesson
This commit is contained in:
22
fix_provider2.py
Normal file
22
fix_provider2.py
Normal file
@@ -0,0 +1,22 @@
|
||||
with open("src/orchestrator_pm.py", "r", encoding="utf-8", newline="") as f:
|
||||
content = f.read()
|
||||
|
||||
# Fix the provider/model setting in generate_tracks
|
||||
old = """# Ensure we use the current provider from ai_client state
|
||||
current_provider = ai_client.get_provider()
|
||||
current_model = ai_client._model if hasattr(ai_client, '_model') else 'gemini-2.5-flash-lite'
|
||||
ai_client.set_provider(current_provider, current_model)"""
|
||||
|
||||
new = """# 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)"""
|
||||
|
||||
content = content.replace(old, new)
|
||||
|
||||
with open("src/orchestrator_pm.py", "w", encoding="utf-8", newline="") as f:
|
||||
f.write(content)
|
||||
|
||||
print("Fixed provider/model in orchestrator_pm.py")
|
||||
Reference in New Issue
Block a user