Expand description
Template module for AI provider configurations
This module provides a modular approach to managing different AI provider templates. Each template is implemented as a separate module with the Template trait.
Re-exports§
pub use deepseek::*;pub use kat_coder::*;pub use kimi::*;pub use longcat::*;pub use minimax::*;pub use seed_code::*;pub use zai::*;
Modules§
- deepseek
- DeepSeek AI provider template implementation
- kat_
coder - KatCoder (WanQing) AI provider template implementation
- kimi
- Kimi/Moonshot AI provider templates implementation
- longcat
- Longcat AI provider template implementation
- minimax
- MiniMax AI provider template implementation
- seed_
code - Seed Code (Volcengine) AI provider template implementation
- zai
- ZAI (GLM/Zhipu) AI provider template implementation
Enums§
- Template
Type - Type of AI provider template
Traits§
- Template
- Trait that all AI provider templates must implement
Functions§
- get_
all_ templates - Get all available template types
- get_
env_ var_ name - Get the environment variable name for a template type Note: For Kimi template, this returns a default. The actual template instance will determine the correct env var based on the specific variant.
- get_
template - Legacy compatibility function - creates a settings function for backwards compatibility
- get_
template_ instance - Get a template instance by type (for backward compatibility)
- get_
template_ instance_ with_ input - Get a template instance by type and original input string
- get_
template_ type - Get template type from string