OAI Path Support

This commit is contained in:
Henky!! 2022-04-06 05:15:25 +02:00
parent 699b3fc10b
commit b568e31381
1 changed files with 37 additions and 32 deletions

View File

@ -981,6 +981,11 @@ if(vars.model == "OAI"):
finally: finally:
file.close() file.close()
if vars.custmodpth:
vars.oaiurl = vars.oaiengines + "/" + vars.custmodpth + "/completions"
args.configname = args.configname + "/" + vars.custmodpth
engselected = True
else:
# Get list of models from OAI # Get list of models from OAI
print("{0}Retrieving engine list...{1}".format(colors.PURPLE, colors.END), end="") print("{0}Retrieving engine list...{1}".format(colors.PURPLE, colors.END), end="")
req = requests.get( req = requests.get(