mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Welcome text v1 and slight mod to tooltip border
This commit is contained in:
@@ -1122,7 +1122,7 @@ def loadmodelsettings():
|
||||
if setting in js["formatoptns"]:
|
||||
setattr(koboldai_vars, setting, js["formatoptns"][setting])
|
||||
if("welcome" in js):
|
||||
koboldai_vars.welcome = js["welcome"] if js["welcome"] != False else ""
|
||||
koboldai_vars.welcome = kml(js["welcome"]) if js["welcome"] != False else koboldai_vars.welcome_default
|
||||
if("newlinemode" in js):
|
||||
koboldai_vars.newlinemode = js["newlinemode"]
|
||||
if("antemplate" in js):
|
||||
@@ -4370,11 +4370,11 @@ def kml(txt):
|
||||
# Send start message and tell Javascript to set UI state
|
||||
#==================================================================#
|
||||
def setStartState():
|
||||
if koboldai_vars.welcome != "":
|
||||
if koboldai_vars.welcome != koboldai_vars.welcome_default:
|
||||
txt = kml(koboldai_vars.welcome) + "<br/>"
|
||||
else:
|
||||
txt = "<span>Welcome to <span class=\"color_cyan\">KoboldAI</span>! You are running <span class=\"color_green\">"+getmodelname()+"</span>.<br/>"
|
||||
if(not koboldai_vars.noai and koboldai_vars.welcome == ""):
|
||||
if(not koboldai_vars.noai and koboldai_vars.welcome == koboldai_vars.welcome_default):
|
||||
txt = txt + "Please load a game or enter a prompt below to begin!</span>"
|
||||
if(koboldai_vars.noai):
|
||||
txt = txt + "Please load or import a story to read. There is no AI in this mode."
|
||||
|
Reference in New Issue
Block a user