mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Merge branch 'KoboldAI:main' into united
This commit is contained in:
@ -382,6 +382,7 @@ if(vars.model == "InferKit"):
|
|||||||
print("{0}Please enter your InferKit API key:{1}\n".format(colors.CYAN, colors.END))
|
print("{0}Please enter your InferKit API key:{1}\n".format(colors.CYAN, colors.END))
|
||||||
vars.apikey = input("Key> ")
|
vars.apikey = input("Key> ")
|
||||||
# Write API key to file
|
# Write API key to file
|
||||||
|
os.makedirs('settings', exist_ok=True)
|
||||||
file = open("settings/" + getmodelname() + ".settings", "w")
|
file = open("settings/" + getmodelname() + ".settings", "w")
|
||||||
try:
|
try:
|
||||||
js = {"apikey": vars.apikey}
|
js = {"apikey": vars.apikey}
|
||||||
@ -416,6 +417,7 @@ if(vars.model == "OAI"):
|
|||||||
print("{0}Please enter your OpenAI API key:{1}\n".format(colors.CYAN, colors.END))
|
print("{0}Please enter your OpenAI API key:{1}\n".format(colors.CYAN, colors.END))
|
||||||
vars.oaiapikey = input("Key> ")
|
vars.oaiapikey = input("Key> ")
|
||||||
# Write API key to file
|
# Write API key to file
|
||||||
|
os.makedirs('settings', exist_ok=True)
|
||||||
file = open("settings/" + getmodelname() + ".settings", "w")
|
file = open("settings/" + getmodelname() + ".settings", "w")
|
||||||
try:
|
try:
|
||||||
js = {"oaiapikey": vars.oaiapikey}
|
js = {"oaiapikey": vars.oaiapikey}
|
||||||
|
Reference in New Issue
Block a user