Skip to content

feat(genai): Update google-genai SDK for improvements - #1244

Draft
Prajna1999 wants to merge 2 commits into
mainfrom
feat/genai-sdk-update-gemini
Draft

Prajna1999 wants to merge 2 commits into
mainfrom
feat/genai-sdk-update-gemini

Conversation

@Prajna1999

@Prajna1999 Prajna1999 commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Issue

Closes #1238

Summary

  1. Updated google-genai SDK to ">=2.25.0" for google-aistudio flow.
  2. Update from GenerateContent to Interaction API as the primary mode of making calls to gemini.
  3. Update default TTS model to gemini-3.8-flash-tts as the older model gemini-3.1-flash-tts-preview is going to be deprecated from 17th November.
  4. Removed deprecated parameters i.e temperature; updated thinking levels.
  5. Removed code duplication from gcp and aistudio flow.

Checklist

Before submitting a pull request, please ensure that you mark these task.

  • Ran fastapi run --reload app/main.py or docker compose up in the repository root and test.
  • If you've fixed a bug or added code that is tested and has test cases.

Notes

Please add here if any other information is required for the reviewer.

Original PR description

Issue

Closes #PLEASE_TYPE_ISSUE_NUMBER

Summary

Explain the motivation for making this change. What existing problem does the pull request solve?

Checklist

Before submitting a pull request, please ensure that you mark these task.

  • Ran fastapi run --reload app/main.py or docker compose up in the repository root and test.
  • If you've fixed a bug or added code that is tested and has test cases.

Notes

Please add here if any other information is required for the reviewer.

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • ready-for-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: ProjectTech4DevAI/kaapi-backend/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0bea2779-c2f0-4d41-bd20-70f37cf9ea69

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot changed the title update genai sdk for gemini feat(genai): Update SDK for improvements Oct 12, 2026
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

OpenAPI changes   🟢 8 non-breaking changes

Tip

Safe to merge from an API-contract perspective.

Full changelog  ·  8
Method Path Change
🟢 POST /api/v1/configs the model request property default value changed from gemini-3.1-flash-tts-preview to gemini-3.8-flash-tts
🟢 POST /api/v1/configs added the new minimal enum value to the request property config_blob/completion/anyOf[subschema #2: KaapiTextCompletionConfig]/params/thinking_level/anyOf[subschema #1]/
🟢 POST /api/v1/llm/call the model request property default value changed from gemini-3.1-flash-tts-preview to gemini-3.8-flash-tts
🟢 POST /api/v1/llm/call added the new minimal enum value to the request property config/blob/anyOf[subschema #1: ConfigBlob]/completion/anyOf[subschema #2: KaapiTextCompletionConfig]/params/thinking_level/anyOf[subschema #1]/
🟢 POST /api/v1/llm/chain the model request property default value changed from gemini-3.1-flash-tts-preview to gemini-3.8-flash-tts
🟢 POST /api/v1/llm/chain added the new minimal enum value to the request property blocks/items/config/blob/anyOf[subschema #1: ConfigBlob]/completion/anyOf[subschema #2: KaapiTextCompletionConfig]/params/thinking_level/anyOf[subschema #1]/
🟢 POST /api/v1/llm/chain/sts the model request property default value changed from gemini-3.1-flash-tts-preview to gemini-3.8-flash-tts
🟢 POST /api/v1/llm/chain/sts added the new minimal enum value to the request property rag/anyOf[subschema #1: RAGBlockSpec]/params/anyOf[subschema #1: TextLLMParams]/thinking_level/anyOf[subschema #1]/

main ↔ 2e9e9605 · generated by oasdiff

@Prajna1999 Prajna1999 changed the title feat(genai): Update SDK for improvements feat(genai): Update google-genai SDK for improvements Oct 12, 2026
@codecov

codecov Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.65517% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...kend/app/services/llm/providers/google_aistudio.py 98.29% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

This branch has not been deployed

No deployments
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.

Migration: Update to Google Gen AI

1 participant