A new Context tab was added where the user can add information the commentators need to know. For the time being, that information is limited to the league name and abbreviation. This information is then passed to the text generation prompt so the AI knows about it. Users are able to enter the info in the Context tab, save it, and load it. A new parameter was added to the settings file under a new section "system," which will consist of settings the user can't directly change from the UI. The new parameter, context_file, keeps track of the most recently loaded/saved context file to automatically load it in on startup next time. If this is the first time the program is run, a default context.json is created in the root directory and that file is loaded.
Fixes #17
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update
Testing
Tests were run on a replay with the prompt slightly modified to force the commentary to use the newly-provided information. The prompt was changed back before pushing the final commit.
Description
A new Context tab was added where the user can add information the commentators need to know. For the time being, that information is limited to the league name and abbreviation. This information is then passed to the text generation prompt so the AI knows about it. Users are able to enter the info in the Context tab, save it, and load it. A new parameter was added to the settings file under a new section "system," which will consist of settings the user can't directly change from the UI. The new parameter, context_file, keeps track of the most recently loaded/saved context file to automatically load it in on startup next time. If this is the first time the program is run, a default context.json is created in the root directory and that file is loaded.
Fixes #17
Type of change
Testing
Tests were run on a replay with the prompt slightly modified to force the commentary to use the newly-provided information. The prompt was changed back before pushing the final commit.