2023-11-01 02:28:54 +00:00
|
|
|
#[macro_use]
|
|
|
|
mod common;
|
2023-11-02 02:45:11 +00:00
|
|
|
mod message;
|
2023-11-02 22:52:57 +00:00
|
|
|
mod model;
|
2024-04-23 06:32:06 +00:00
|
|
|
mod reply_handler;
|
2023-11-01 02:28:54 +00:00
|
|
|
|
|
|
|
pub use common::*;
|
2023-11-02 02:45:11 +00:00
|
|
|
pub use message::*;
|
2023-11-02 22:52:57 +00:00
|
|
|
pub use model::*;
|
2024-04-23 06:32:06 +00:00
|
|
|
pub use reply_handler::*;
|
2023-11-01 02:28:54 +00:00
|
|
|
|
2023-11-01 07:01:50 +00:00
|
|
|
register_client!(
|
2023-11-03 22:28:40 +00:00
|
|
|
(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),
|
2023-11-01 02:28:54 +00:00
|
|
|
);
|