Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/bots/CharacterAIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ export default class CharacterAIBot extends Bot {
return uuidv4().split("-").fill("vhj9cXafWcF8", 4, 5).join("-");
}

constructor() {
super();
}

/**
* Check whether the bot is logged in, settings are correct, etc.
* @returns {boolean} - true if the bot is available, false otherwise.
Expand Down
4 changes: 0 additions & 4 deletions src/bots/ClaudeAIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ export default class ClaudeAIBot extends Bot {
static _loginUrl = "https://claude.ai/";
static _lock = new AsyncLock(); // AsyncLock for prompt requests

constructor() {
super();
}

/**
* Check whether the bot is logged in, settings are correct, etc.
* @returns {boolean} - true if the bot is available, false otherwise.
Expand Down
4 changes: 0 additions & 4 deletions src/bots/DevBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export default class DevBot extends Bot {
static _loginUrl = "http://chatall.ai";
static _isAvailable = true;

constructor() {
super();
}

/**
* Check whether the bot is logged in, settings are correct, etc.
* @returns {boolean} - true if the bot is available, false otherwise.
Expand Down
4 changes: 0 additions & 4 deletions src/bots/LangChainBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ export default class LangChainBot extends Bot {
static _brandId = "langChainBot";
static _chatModel = undefined; // ChatModel instance

constructor() {
super();
}

async _sendPrompt(prompt, onUpdateResponse, callbackParam) {
let messages = await this.getChatContext();
let bufferMemory = new BufferMemory();
Expand Down
4 changes: 0 additions & 4 deletions src/bots/MOSSBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ export default class MOSSBot extends Bot {
static _loginUrl = "https://moss.fastnlp.top/moss/";
static _lock = new AsyncLock();

constructor() {
super();
}

getAuthHeader() {
const token = store.state.moss?.token?.refresh;
return {
Expand Down
4 changes: 0 additions & 4 deletions src/bots/MistralBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ export default class MistralBot extends Bot {
static _logoFilename = "mistral-logo.png"; // Place it in public/bots/
static _loginUrl = "https://chat.mistral.ai/login";

constructor() {
super();
}

async _checkAvailability() {
let available = false;
try {
Expand Down
4 changes: 0 additions & 4 deletions src/bots/PerplexityBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ export default class PerplexityBot extends Bot {
static _isDarkLogo = true; // True if the main color of logo is dark
static _loginUrl = "https://www.perplexity.ai";

constructor() {
super();
}

async _checkAvailability() {
let available = false;
try {
Expand Down
4 changes: 0 additions & 4 deletions src/bots/PhindBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ export default class PhindBot extends Bot {
static _loginUrl = "https://www.phind.com";
static _lock = new AsyncLock(); // AsyncLock for prompt requests

constructor() {
super();
}

/**
* Check whether the bot is logged in, settings are correct, etc.
* @returns {boolean} - true if the bot is available, false otherwise.
Expand Down
4 changes: 0 additions & 4 deletions src/bots/PiBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ export default class PiBot extends Bot {
static _loginUrl = "https://pi.ai/";
static _lock = new AsyncLock(); // AsyncLock for prompt requests

constructor() {
super();
}

/**
* Check whether the bot is logged in, settings are correct, etc.
* @returns {boolean} - true if the bot is available, false otherwise.
Expand Down
4 changes: 0 additions & 4 deletions src/bots/QianWenBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ export default class QianWenBot extends Bot {
static _loginUrl = "https://qianwen.aliyun.com/";
static _lock = new AsyncLock(); // AsyncLock for prompt requests

constructor() {
super();
}

getRequestHeaders() {
return {
"x-xsrf-token": store.state.qianWen?.xsrfToken,
Expand Down
4 changes: 0 additions & 4 deletions src/bots/Qihoo360AIBrainBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export default class Qihoo360AIBrainBot extends Bot {
static _logoFilename = "360-ai-brain-logo.png";
static _loginUrl = "https://chat.360.com/";

constructor() {
super();
}

async _checkAvailability() {
let available = false;

Expand Down
4 changes: 0 additions & 4 deletions src/bots/SkyWorkBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ export default class SkyWorkBot extends Bot {

currentPrompt = ""; // Used by createChatContext() only

constructor() {
super();
}

getAuthHeaders() {
return {
headers: {
Expand Down
4 changes: 0 additions & 4 deletions src/bots/SparkBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ export default class SparkBot extends Bot {
static _loginUrl = "https://xinghuo.xfyun.cn/";
static _lock = new AsyncLock(); // All Spark bots share the same lock

constructor() {
super();
}

async _checkAvailability() {
let available = false;
try {
Expand Down
4 changes: 0 additions & 4 deletions src/bots/TemplateBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export default class YourAIBot extends Bot {
static _loginUrl = "https://example.com/";
static _lock = new AsyncLock(); // AsyncLock for prompt requests

constructor() {
super();
}

/**
* Check whether the bot is logged in, settings are correct, etc.
* @returns {boolean} - true if the bot is available, false otherwise.
Expand Down
4 changes: 0 additions & 4 deletions src/bots/YouChatBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ export default class YouChatBot extends Bot {
static _loginUrl = "https://you.com/";
static _lock = new AsyncLock(); // AsyncLock for prompt requests

constructor() {
super();
}

/**
* Check whether the bot is logged in, settings are correct, etc.
* @returns {boolean} - true if the bot is available, false otherwise.
Expand Down
3 changes: 0 additions & 3 deletions src/bots/anthropic/ClaudeAPI20Bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class ClaudeAPI20Bot extends ClaudeAPIBot {
static _className = "ClaudeAPI20Bot";
static _logoFilename = "claudeapi-20-logo.png";
static _model = "claude-2.0";
constructor() {
super();
}
}
3 changes: 0 additions & 3 deletions src/bots/anthropic/ClaudeAPI21Bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class ClaudeAPI21Bot extends ClaudeAPIBot {
static _className = "ClaudeAPI21Bot";
static _logoFilename = "claudeapi-21-logo.png";
static _model = "claude-2.1";
constructor() {
super();
}
}
3 changes: 0 additions & 3 deletions src/bots/anthropic/ClaudeAPI37SonnetBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class ClaudeAPI37SonnetBot extends ClaudeAPIBot {
static _className = "ClaudeAPI37SonnetBot";
static _logoFilename = "claudeapi-37-sonnet-logo.png";
static _model = "claude-3-7-sonnet-latest";
constructor() {
super();
}
}
4 changes: 0 additions & 4 deletions src/bots/anthropic/ClaudeAPIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ export default class ClaudeAPIBot extends LangChainBot {
static _brandId = "claudeApi";
static _className = "ClaudeAPIBot";

constructor() {
super();
}

async _checkAvailability() {
let available = false;

Expand Down
3 changes: 0 additions & 3 deletions src/bots/anthropic/ClaudeAPIHaikuBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class ClaudeAPIHaikuBot extends ClaudeAPIBot {
static _className = "ClaudeAPIHaikuBot";
static _logoFilename = "claudeapi-haiku-logo.png";
static _model = "claude-3-5-haiku-latest";
constructor() {
super();
}
}
3 changes: 0 additions & 3 deletions src/bots/anthropic/ClaudeAPIOpusBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class ClaudeAPIOpusBot extends ClaudeAPIBot {
static _className = "ClaudeAPIOpusBot";
static _logoFilename = "claudeapi-opus-logo.png";
static _model = "claude-3-opus-20240229";
constructor() {
super();
}
}
3 changes: 0 additions & 3 deletions src/bots/anthropic/ClaudeAPISonnetBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class ClaudeAPISonnetBot extends ClaudeAPIBot {
static _className = "ClaudeAPISonnetBot";
static _logoFilename = "claudeapi-sonnet-logo.png";
static _model = "claude-3-5-sonnet-latest";
constructor() {
super();
}
}
4 changes: 0 additions & 4 deletions src/bots/baidu/ERNIEBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ export default class ERNIEBot extends Bot {
static _logoFilename = "ernie-logo.png"; // Place it in public/bots/
static _loginUrl = "https://yiyan.baidu.com/";

constructor() {
super();
}

async _checkAvailability() {
let available = false;

Expand Down
4 changes: 0 additions & 4 deletions src/bots/baidu/WenxinQianfan4Bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ export default class WenxinQianfan4Bot extends WenxinQianfanBot {
static _logoFilename = "wenxin-qianfan-4-logo.png"; // Place it in public/bots/
static _model = "ERNIE-Bot-4"; // Model name
static _lock = new AsyncLock();

constructor() {
super();
}
}
4 changes: 0 additions & 4 deletions src/bots/baidu/WenxinQianfanBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ export default class WenxinQianfanBot extends LangChainBot {
static _model = "ERNIE-Bot"; // Model name
static _lock = new AsyncLock();

constructor() {
super();
}

async _checkAvailability() {
let available = false;
const { apiKey, secretKey } = store.state.wenxinQianfan;
Expand Down
4 changes: 0 additions & 4 deletions src/bots/baidu/WenxinQianfanTurboBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ export default class WenxinQianfanTurboBot extends WenxinQianfanBot {
static _logoFilename = "wenxin-qianfan-turbo-logo.png"; // Place it in public/bots/
static _model = "ERNIE-Bot-turbo"; // Model name
static _lock = new AsyncLock();

constructor() {
super();
}
}
3 changes: 0 additions & 3 deletions src/bots/cohere/CohereAPIAya23Bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class CohereAPIAya23Bot extends CohereAPIBot {
static _className = "CohereAPIAya23Bot";
static _logoFilename = "cohere-logo.png";
static _model = "c4ai-aya-23";
constructor() {
super();
}
}
4 changes: 0 additions & 4 deletions src/bots/cohere/CohereAPIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ export default class CohereAPIBot extends LangChainBot {
static _brandId = "cohereApi";
static _className = "CohereAPIBot";

constructor() {
super();
}

async _checkAvailability() {
let available = false;

Expand Down
3 changes: 0 additions & 3 deletions src/bots/cohere/CohereAPICommandBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class CohereAPICommandBot extends CohereAPIBot {
static _className = "CohereAPICommandBot";
static _logoFilename = "cohere-logo.png";
static _model = "command";
constructor() {
super();
}
}
3 changes: 0 additions & 3 deletions src/bots/cohere/CohereAPICommandLightBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class CohereAPICommandLightBot extends CohereAPIBot {
static _className = "CohereAPICommandLightBot";
static _logoFilename = "cohere-logo.png";
static _model = "command-light";
constructor() {
super();
}
}
3 changes: 0 additions & 3 deletions src/bots/cohere/CohereAPICommandRBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class CohereAPICommandRBot extends CohereAPIBot {
static _className = "CohereAPICommandRBot";
static _logoFilename = "cohere-logo.png";
static _model = "command-r";
constructor() {
super();
}
}
3 changes: 0 additions & 3 deletions src/bots/cohere/CohereAPICommandRPlusBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class CohereAPICommandRPlusBot extends CohereAPIBot {
static _className = "CohereAPICommandRPlusBot";
static _logoFilename = "cohere-logo.png";
static _model = "command-r-plus";
constructor() {
super();
}
}
4 changes: 0 additions & 4 deletions src/bots/google/BardBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,6 @@ export default class BardBot extends Bot {
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) chatall/1.29.40 Chrome/114.0.5735.134 Safari/537.36";
static _lock = new AsyncLock();

constructor() {
super();
}

async _checkAvailability() {
const context = await this.getChatContext();
let available = false;
Expand Down
4 changes: 0 additions & 4 deletions src/bots/google/Gemini15FlashAPIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ export default class Gemini15FlashAPIBot extends GeminiAPIBot {
static _className = "Gemini15FlashAPIBot";
static _logoFilename = "gemini-1.5-flash-logo.png";
static _model = "gemini-1.5-flash-latest";

constructor() {
super();
}
}
4 changes: 0 additions & 4 deletions src/bots/google/Gemini15ProAPIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ export default class Gemini15ProAPIBot extends GeminiAPIBot {
static _className = "Gemini15ProAPIBot";
static _logoFilename = "gemini-1.5-logo.png"; // Place it in public/bots/
static _model = "gemini-1.5-pro-latest";

constructor() {
super();
}
}
4 changes: 0 additions & 4 deletions src/bots/google/Gemini20FlashAPIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ export default class Gemini20FlashAPIBot extends GeminiAPIBot {
static _className = "Gemini20FlashAPIBot";
static _logoFilename = "gemini-2.0-flash-logo.png";
static _model = "gemini-2.0-flash-001";

constructor() {
super();
}
}
4 changes: 0 additions & 4 deletions src/bots/google/Gemini20FlashLiteAPIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ export default class Gemini20FlashLiteAPIBot extends GeminiAPIBot {
static _className = "Gemini20FlashLiteAPIBot";
static _logoFilename = "gemini-2.0-flash-lite-logo.png";
static _model = "gemini-2.0-flash-lite";

constructor() {
super();
}
}
4 changes: 0 additions & 4 deletions src/bots/google/GeminiAPIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export default class GeminiAPIBot extends LangChainBot {
static _logoFilename = "gemini-1.0-logo.png"; // Place it in public/bots/
static _model = "gemini-pro";

constructor() {
super();
}

async _checkAvailability() {
let available = false;

Expand Down
4 changes: 0 additions & 4 deletions src/bots/google/GeminiAdvBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ export default class GeminiAdvBot extends BardBot {
static _className = "GeminiAdvBot"; // Class name of the bot
static _model = "gemini-ultra"; // gemini-pro or gemini-ultra
static _logoFilename = "gemini-chat-adv-logo.svg"; // Place it in public/bots/

constructor() {
super();
}
}
3 changes: 0 additions & 3 deletions src/bots/groq/Gemma29bGroqAPIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class Gemma29bGroqAPIBot extends GroqAPIBot {
static _className = "Gemma29bGroqAPIBot";
static _logoFilename = "gemma2-9b-it-groq-logo.png";
static _model = "gemma2-9b-it";
constructor() {
super();
}
}
3 changes: 0 additions & 3 deletions src/bots/groq/Gemma7bGroqAPIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ export default class Gemma7bGroqAPIBot extends GroqAPIBot {
static _className = "Gemma7bGroqAPIBot";
static _logoFilename = "gemma-7b-it-groq-logo.png";
static _model = "gemma-7b-it";
constructor() {
super();
}
}
Loading