Made model a preference.

This commit is contained in:
2026-03-15 02:37:43 -04:00
parent 704b92b397
commit fef44df6a1
4 changed files with 59 additions and 15 deletions

View File

@@ -12,7 +12,7 @@
##
## The _() surrounding the string marks it as eligible for translation.
define config.name = _("Soul Droid Chat")
define config.name = _("Souldroid Chat")
## Determines if the title given above is shown on the main menu screen. Set
@@ -23,7 +23,7 @@ define gui.show_name = True
## The version of the game.
define config.version = "0.1"
define config.version = "0.1.1"
## Text that is placed on the game's about screen. Place the text between the
@@ -37,7 +37,7 @@ define gui.about = _p("""
## distribution. This must be ASCII-only, and must not contain spaces, colons,
## or semicolons.
define build.name = "SoulDroidChat"
define build.name = "SouldroidChat"
## Sounds and music ############################################################
@@ -210,3 +210,11 @@ init python:
define config.minimum_presplash_time = 2.0
default persistent.api_key = ''
default persistent.model = 'gemma-3-4b-it'
init python:
def api_key_func(value):
persistent.api_key = value
def model_func(value):
persistent.model = value