added temperature and token count to ai config
This commit is contained in:
@@ -35,7 +35,9 @@ class Server:
|
||||
bot = self._server.get_bot(json_body['modelId'])
|
||||
print(bot)
|
||||
bot.ensure_loaded()
|
||||
response = bot.generate(json_body['messages'])
|
||||
response = bot.generate(json_body['messages'],
|
||||
token_count=json_body['tokenCount'],
|
||||
temperature=json_body['temperature'])
|
||||
elif json_body['command'] == 'shutdown':
|
||||
bot = self._server.get_bot(json_body['modelId'])
|
||||
bot.ensure_unloaded()
|
||||
|
||||
Reference in New Issue
Block a user