Break down llm_config.yaml into individual prompt template files #113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "copilot/break-down-llm-config-yaml"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary: Break down llm_config.yaml into individual prompt files ✅
Successfully implemented the requested feature to break down the monolithic
llm_config.yamlfile into individual prompt template files for easier editing.Changes Made:
tale/llm/prompt_templates/directoryImplementation Details:
Files Created:
.txtfiles intale/llm/prompt_templates/tale/llm/prompt_templates/README.mdwith comprehensive documentationtests/test_llm_config.pywith 7 test casesFiles Modified:
tale/llm/llm_config.py- Enhanced to load prompts from individual filesllm_config.yaml- Simplified to contain only configuration valuestests/test_llm_io.py- Updated to usellm_config.load_config()instead of loading YAML directlyKey Design Decisions:
.txtextension) becomes the dict keyllm_config.paramsdict structureTesting:
✅ All new tests pass (7/7)
✅ All existing llm-related tests pass (30 tests including test_llm_io.py)
✅ Code review found no issues
✅ CodeQL security scan found no vulnerabilities
Benefits:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
@copilot TestLlmIo.py uses the llm_config.yaml file, and those tests fail now. can you make it use the class instead? (llm_config.py)
Fixed in commit
977c3cf. Updatedtest_llm_io.pyto usellm_config.load_config()instead of loading the YAML file directly. All 11 tests in test_llm_io.py now pass.