joshjaysalazar / IntelliCaster

An AI race commentator for iRacing
GNU General Public License v3.0
3 stars 0 forks source link

17 expand information text generation has access to #44

Closed joshjaysalazar closed 10 months ago

joshjaysalazar commented 10 months ago

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.