pub fn has_llm_access(api_key: &Option<String>, provider: &Provider) -> boolExpand description
Checks if LLM access is available.
Determines whether LLM analysis can be performed based on the provider type and API key availability. Ollama doesn’t require an API key, while cloud providers do.
§Arguments
api_key- Optional API keyprovider- The LLM provider type
§Returns
true if LLM access is available, false otherwise.