def _create_gemini_model(model_name: str):
    """Helper function to create a Gemini model with specified model name."""
    api_key = Configuration.get("GOOGLE_GLA_API_KEY")
    if not api_key:
        return None, {"status_code": 401, "detail": "No API key provided. Please set GOOGLE_GLA_API_KEY in your configuration."}
    
    return GeminiModel(
        model_name,
        provider=GoogleGLAProvider(api_key=api_key)
    ), None
Helper function to create a Gemini model with specified model name.
src/upsonic/server/level_utilized/utility.py