pub fn create_ai_provider(ai_config: &AIConfig) -> Result<Box<dyn AIProvider>>Expand description
Create an AI provider from AI configuration.
This function creates the appropriate AI provider based on the provider type specified in the configuration.
§Arguments
ai_config- AI configuration containing provider settings
§Errors
Returns an error if the provider type is unsupported or creation fails.