What happened?
generate_script.py and review_script.py will always attempt to run from http://localhost:11434/v1 even if the configuration has been changed.
Steps to reproduce
- Run in docker compose.
- Change configuration of LLM server.
- Try generating a script.
Terminal / log output
GPU
NVIDIA (Linux)
GPU model and VRAM
No response
TTS Mode
Local (built-in)
Voice type (if relevant)
Not applicable
Additional context
The following patch seems to fix the bug in generate_script.py, but may introduce bugs in other run modes:
diff --git a/app/generate_script.py b/app/generate_script.py
index 0189c2c..8f0ccb8 100644
--- a/app/generate_script.py
+++ b/app/generate_script.py
@@ -418,7 +418,7 @@ def main():
return
# Load LLM config
- config_path = os.path.join(os.path.dirname(__file__), "config.json")
+ config_path = os.getenv("ALEXANDRIA_CONFIG_PATH", "/alexandria/config/config.json")
config = {}
if os.path.exists(config_path):
try:
Only just realized review_script.py had problems. A review should be done to ensure all steps involving the LLM read the configured endpoint.
What happened?
generate_script.pyandreview_script.pywill always attempt to run fromhttp://localhost:11434/v1even if the configuration has been changed.Steps to reproduce
Terminal / log output
GPU
NVIDIA (Linux)
GPU model and VRAM
No response
TTS Mode
Local (built-in)
Voice type (if relevant)
Not applicable
Additional context
The following patch seems to fix the bug in
generate_script.py, but may introduce bugs in other run modes:Only just realized
review_script.pyhad problems. A review should be done to ensure all steps involving the LLM read the configured endpoint.