Closed leehuwuj closed 1 month ago
Latest commit: 8ee082e8852bc7e8ca02dcf6d2316fed06dcfc7e
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The recent patch streamlines the 'init_gemini' function in settings.py
by constructing model and embedding names directly from environment variables. This approach replaces the previous hard-coded mappings. This change enhances flexibility and simplifies the code, making it more adaptable to different environments without requiring manual updates to the mappings.
Files | Summary |
---|---|
.changeset/silver-masks-speak.md | Introduces a patch to remove hard-coded mappings for Gemini supported models. |
templates/types/streaming/fastapi/app/settings.py | Simplifies init_gemini function, replacing model_map and embed_model_map with direct environment variable usage. |
In realms of code, a change ignites,
From hard-coded paths to flexible heights.
Environment's breath, the models find,
Simplicity and ease, now intertwined.
With Gemini's grace, we forge anew,
A streamlined dance, for all to view.
🌟✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit