pub struct ProviderConfigs;
Expand description
预定义的提供商配置,支持多种AI服务
Predefined provider configurations for multiple AI services
Implementations§
Source§impl ProviderConfigs
impl ProviderConfigs
pub fn groq() -> ProviderConfig
pub fn openai() -> ProviderConfig
pub fn deepseek() -> ProviderConfig
pub fn ollama() -> ProviderConfig
Sourcepub fn xai_grok() -> ProviderConfig
pub fn xai_grok() -> ProviderConfig
xAI / Grok configuration - OpenAI-compatible hosted offering
Sourcepub fn azure_openai() -> ProviderConfig
pub fn azure_openai() -> ProviderConfig
Azure OpenAI configuration - highly compatible but often uses resource-specific base URL
Sourcepub fn huggingface() -> ProviderConfig
pub fn huggingface() -> ProviderConfig
Hugging Face Inference API - configured to reuse generic adapter; may need adjustments per model
Sourcepub fn together_ai() -> ProviderConfig
pub fn together_ai() -> ProviderConfig
Together AI - OpenAI-compatible chat API
Sourcepub fn groq_as_generic() -> ProviderConfig
pub fn groq_as_generic() -> ProviderConfig
Groq configuration - proving OpenAI compatibility
Sourcepub fn qwen() -> ProviderConfig
pub fn qwen() -> ProviderConfig
Qwen / 通义千问 (Alibaba Cloud) - OpenAI-compatible mode Uses DASHSCOPE_API_KEY and optional DASHSCOPE_BASE_URL to override the base URL.
Sourcepub fn anthropic() -> ProviderConfig
pub fn anthropic() -> ProviderConfig
Anthropic Claude configuration - requires special handling
Auto Trait Implementations§
impl Freeze for ProviderConfigs
impl RefUnwindSafe for ProviderConfigs
impl Send for ProviderConfigs
impl Sync for ProviderConfigs
impl Unpin for ProviderConfigs
impl UnwindSafe for ProviderConfigs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more