Skip to content

Critical Inconsistency in Environment Variable Handling for Gemini API Key Across Modules #8

@shaanlabs

Description

@shaanlabs

A critical configuration flaw exists in the current codebase: non-standardized environment variable names are used for the Gemini API key, which introduces fragility into the model initialization and API communication pipeline.

Different modules expect inconsistent identifiers for the same environment variable:

Some modules reference GEMINI_API_KEY

Others (e.g., model_loader.py) reference GOOGLE_API_KEY

This inconsistency violates 12-factor app principles regarding strict config uniformity and creates a hidden source of runtime failure, especially in containerized environments (e.g., Docker, Kubernetes) or CI/CD pipelines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions