Skip to content

feat: Add support for configurable GEMINI_MODEL via environment variable#26

Open
chavatte wants to merge 3 commits intoArmaggheddon:mainfrom
chavatte:feature/custom-gemini-model
Open

feat: Add support for configurable GEMINI_MODEL via environment variable#26
chavatte wants to merge 3 commits intoArmaggheddon:mainfrom
chavatte:feature/custom-gemini-model

Conversation

@chavatte
Copy link
Copy Markdown

Currently, the Gemini model is hardcoded to gemini-1.5-flash-002. This PR introduces a new environment variable GEMINI_MODEL allowing users to switch to newer models (like gemini-2.5-flash) without modifying the source code.

Changes:

Added get_gemini_model in api_keys.py.

Updated api_client.py to use the dynamic model name.

Added example in api_keys.env.example.

Added a new function to retrieve the GEMINI_MODEL from environment variables.
Updated model_name to fetch from environment variable instead of hardcoding.
Added optional GEMINI_MODEL configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant