This commit is contained in:
2026-01-12 16:44:21 +03:00
parent c6faa19cb0
commit 8fe6857345
5 changed files with 51 additions and 58 deletions
+12 -12
View File
@@ -46,8 +46,6 @@ import {Choice} from "./commands/choice";
import {Coin} from "./commands/coin";
import {Qr} from "./commands/qr";
import {Distort} from "./commands/distort";
import {CacheSize} from "./commands/cache-size";
import {CacheClear} from "./commands/cache-clear";
import {Dice} from "./commands/dice";
import {Unban} from "./commands/unban";
import {Title} from "./commands/title";
@@ -113,18 +111,20 @@ export const chatCommands: ChatCommand[] = [
new Shutdown(),
new Leave(),
new OllamaChat(),
new OllamaSearch(),
new OllamaPrompt(),
new OllamaKill(),
new GeminiChat(),
new CacheSize(),
new CacheClear()
];
if (Environment.OLLAMA_ADDRESS && Environment.OLLAMA_MODEL && Environment.SYSTEM_PROMPT) {
chatCommands.push(new OllamaChat(), new OllamaPrompt(), new OllamaKill());
}
if (Environment.OLLAMA_API_KEY) {
chatCommands.push(new OllamaSearch());
}
if (Environment.GEMINI_API_KEY) {
chatCommands.push(new GeminiChat());
}
async function main() {
console.log(`TEST_ENVIRONMENT: ${Environment.TEST_ENVIRONMENT}\nDATA_PATH: ${Environment.DATA_PATH}`);