move AIHorde import to top

This commit is contained in:
RealBeepMcJeep 2023-08-29 14:29:02 -07:00
parent d07779e5da
commit 7bf72beed7
1 changed files with 1 additions and 1 deletions

View File

@ -49,6 +49,7 @@ const yauzl = require('yauzl');
const tiktoken = require('@dqbd/tiktoken');
// local library imports
const AIHorde = require("./src/horde");
const basicAuthMiddleware = require('./src/middleware/basicAuthMiddleware');
const characterCardParser = require('./src/character-card-parser.js');
const contentManager = require('./src/content-manager');
@ -135,7 +136,6 @@ const listen = config.listen;
const allowKeysExposure = config.allowKeysExposure;
function getHordeClient() {
const AIHorde = require("./src/horde");
const ai_horde = new AIHorde({
client_agent: getVersion()?.agent || 'SillyTavern:UNKNOWN:Cohee#1207',
});