slidedeckai.helpers.llm_helper.is_valid_llm_provider_model#
- slidedeckai.helpers.llm_helper.is_valid_llm_provider_model(provider: str, model: str, api_key: str, azure_endpoint_url: str = '', azure_deployment_name: str = '', azure_api_version: str = '') bool[source]#
Verify whether LLM settings are proper. This function does not verify whether api_key is correct. It only confirms that the key has at least five characters. Key verification is done when the LLM is created.
- Parameters:
provider – Name of the LLM provider.
model – Name of the model.
api_key – The API key or access token.
azure_endpoint_url – Azure OpenAI endpoint URL.
azure_deployment_name – Azure OpenAI deployment name.
azure_api_version – Azure OpenAI API version.
- Returns:
True if the settings “look” OK; False otherwise.