Skip to content

Conversation

@YsielX
Copy link

@YsielX YsielX commented Apr 19, 2025

  1. Gemini API Integration (services/translate/geminipro/index.jsx):

    • The translation function now accepts and processes the thinkingBudget configuration value.
    • If a valid, non-negative integer value is provided for thinkingBudget, it's included in the API request payload under generationConfig.thinkingConfig.thinkingBudget. This aligns with the updated Gemini REST API specification.
  2. Configuration UI (services/translate/geminipro/Config.jsx):

    • Added a new input field in the Gemini service settings UI allowing users to configure the "Thinking Budget".
    • The default value for thinkingBudget is initialized as an empty string.
  3. Localization (i18n):

    • Added the localization key services.translate.geminipro.thinking_budget and its corresponding translations to numerous locale files (e.g., en_US, zh_CN, es_ES, de_DE, ja_JP, etc.) to ensure the new setting's label is displayed correctly in different languages.
    • Populated missing Gemini configuration sections in several locale files (e.g., es_ES, it_IT, ja_JP, etc.).

Co-authored-by: 2045gemini <2045gemini@gmail.com>
Co-authored-by: YsielX <332494219@qq.com>
Copy link

@jeffpeng3 jeffpeng3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Well tested and confirmed to be functional.

my action build for this PR

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.

2 participants