universal_chatbot library

Classes

ChatGPT
ChatGPT service The ChatGPT class extends the LLM class and provides methods for generating text, images, and conversations using the ChatGPT model. It implements the generateConversation method to generate a conversation based on the given messages.
Claude
Claude service The Claude class extends the LLM class and provides methods for generating text, images, and conversations using the Claude model. It implements the generateConversation method to generate a conversation based on the given messages.
DefaultClaudeConfig
Default prompt config for Claude engine model engine defaults to 'claude-3-5-sonnet-20240620'
DefaultGeminiConfig
Default prompt config for Gemini engine model engine defaults to 'gemini-1.5-flash'
GeminiClient
The GeminiClient class extends the LLM class and provides methods for interacting with the Gemini AI model. It implements the generateConversation method to generate a conversation based on the given messages.
GPT4Config
Default prompt config for ChatGPT engine model engine, defaults to 'gpt-4o'
LLM
Abstract LLM class Each service has its own implementation and configuration
LLMMessage
LLM conversation message Default role is user
PromptConfig
Special prompt config for each request engine model engine
ServiceConfig
Configs for api serfice, which is used to configure API service settings.