aichat/src/client/mod.rs

36 lines
942 B
Rust
Raw Normal View History

#[macro_use]
mod common;
mod message;
mod model;
2024-04-23 06:32:06 +00:00
mod reply_handler;
pub use common::*;
pub use message::*;
pub use model::*;
2024-04-23 06:32:06 +00:00
pub use reply_handler::*;
register_client!(
(openai, "openai", OpenAIConfig, OpenAIClient),
(
azure_openai,
"azure-openai",
AzureOpenAIConfig,
AzureOpenAIClient
),
2024-04-10 23:53:59 +00:00
(
openai_compatible,
"openai-compatible",
OpenAICompatibleConfig,
OpenAICompatibleClient
),
(gemini, "gemini", GeminiConfig, GeminiClient),
2024-03-25 00:23:54 +00:00
(vertexai, "vertexai", VertexAIConfig, VertexAIClient),
2024-04-10 23:53:59 +00:00
(claude, "claude", ClaudeConfig, ClaudeClient),
(mistral, "mistral", MistralConfig, MistralClient),
(cohere, "cohere", CohereConfig, CohereClient),
2024-04-25 12:59:56 +00:00
(groq, "groq", GroqConfig, GroqClient),
2024-04-10 23:53:59 +00:00
(ollama, "ollama", OllamaConfig, OllamaClient),
2023-11-04 00:54:40 +00:00
(ernie, "ernie", ErnieConfig, ErnieClient),
2023-11-04 01:51:01 +00:00
(qianwen, "qianwen", QianwenConfig, QianwenClient),
);