[PR #4] [MERGED] feat: Add integration for Google Gemini models, including 3 Pro Previ… #23

Closed
opened 2026-02-16 09:17:49 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/openwork/pull/4
Author: @yaswanth-8
Created: 1/16/2026
Status: Merged
Merged: 1/16/2026
Merged by: @hntrl

Base: mainHead: feature/support-gemini-models


📝 Commits (4)

  • 956bb24 feat: Add integration for Google Gemini models, including 3 Pro Preview, 2.5 Pro, 2.5 Flash, and 2.5 Flash Lite. This update will include full provider configuration, API key management, runtime support, and corresponding UI components.
  • b2a65e7 feat: Add integration for Google Gemini models (update lock file)
  • 40e0544 feat: Add integration for Google Gemini models (update README)
  • 1b69d32 change logo

📊 Changes

9 files changed (+90 additions, -6 deletions)

View changed files

📝 README.md (+1 -0)
📝 package-lock.json (+26 -0)
📝 package.json (+1 -0)
📝 src/main/agent/runtime.ts (+12 -1)
📝 src/main/ipc/models.ts (+35 -1)
📝 src/main/storage.ts (+2 -1)
📝 src/main/types.ts (+1 -1)
📝 src/renderer/src/components/chat/ModelSwitcher.tsx (+11 -1)
📝 src/renderer/src/types.ts (+1 -1)

📄 Description

Add integration for Google Gemini models including 3 Pro Preview, 2.5 Pro, 2.5 Flash, and 2.5 Flash Lite. Includes provider configuration, API key management, runtime support, and UI components.

Fixes #1

Description

Add Gemini model support
The changes include:

  • Added @langchain/google-genai dependency in package.json:1
  • Added Google provider support in src/main/ipc/models.ts:18 and src/main/types.ts:28
  • Added 4 Gemini models (3 Pro Preview, 2.5 Pro, 2.5 Flash, 2.5 Flash Lite) in src/main/ipc/models.ts:156-188
  • Integrated ChatGoogleGenerativeAI in runtime in src/main/agent/runtime.ts:7
  • Added Google API key storage in src/main/storage.ts:11
  • Added Google icon in UI in src/renderer/src/components/chat/ModelSwitcher.tsx:27

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)

Checklist

  • I have read the Contributing Guide
  • I have tested my changes locally
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

chat-gemini gemini-selection

Additional Notes

Gemini is performing really good, having in our openwork will be very helpful.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/openwork/pull/4 **Author:** [@yaswanth-8](https://github.com/yaswanth-8) **Created:** 1/16/2026 **Status:** ✅ Merged **Merged:** 1/16/2026 **Merged by:** [@hntrl](https://github.com/hntrl) **Base:** `main` ← **Head:** `feature/support-gemini-models` --- ### 📝 Commits (4) - [`956bb24`](https://github.com/langchain-ai/openwork/commit/956bb24cb1f76ecd6451769a25f09a96647db0d1) feat: Add integration for Google Gemini models, including 3 Pro Preview, 2.5 Pro, 2.5 Flash, and 2.5 Flash Lite. This update will include full provider configuration, API key management, runtime support, and corresponding UI components. - [`b2a65e7`](https://github.com/langchain-ai/openwork/commit/b2a65e7fad79b9326ab7d5470c1853f2ad450676) feat: Add integration for Google Gemini models (update lock file) - [`40e0544`](https://github.com/langchain-ai/openwork/commit/40e0544cb35eda1978a07a7cdd99ea288a0b1d02) feat: Add integration for Google Gemini models (update README) - [`1b69d32`](https://github.com/langchain-ai/openwork/commit/1b69d32c791b02109d13ed3be8e89c3a1eb01ba7) change logo ### 📊 Changes **9 files changed** (+90 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `package-lock.json` (+26 -0) 📝 `package.json` (+1 -0) 📝 `src/main/agent/runtime.ts` (+12 -1) 📝 `src/main/ipc/models.ts` (+35 -1) 📝 `src/main/storage.ts` (+2 -1) 📝 `src/main/types.ts` (+1 -1) 📝 `src/renderer/src/components/chat/ModelSwitcher.tsx` (+11 -1) 📝 `src/renderer/src/types.ts` (+1 -1) </details> ### 📄 Description Add integration for Google Gemini models including 3 Pro Preview, 2.5 Pro, 2.5 Flash, and 2.5 Flash Lite. Includes provider configuration, API key management, runtime support, and UI components. Fixes #1 ## Description Add Gemini model support The changes include: - Added @langchain/google-genai dependency in package.json:1 - Added Google provider support in src/main/ipc/models.ts:18 and src/main/types.ts:28 - Added 4 Gemini models (3 Pro Preview, 2.5 Pro, 2.5 Flash, 2.5 Flash Lite) in src/main/ipc/models.ts:156-188 - Integrated ChatGoogleGenerativeAI in runtime in src/main/agent/runtime.ts:7 - Added Google API key storage in src/main/storage.ts:11 - Added Google icon in UI in src/renderer/src/components/chat/ModelSwitcher.tsx:27 ## Type of Change - [ ] Bug fix (non-breaking change that fixes an issue) - [x] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [x] Documentation update - [ ] Refactoring (no functional changes) ## Checklist - [x] I have read the [Contributing Guide](CONTRIBUTING.md) - [x] I have tested my changes locally - [x] My changes generate no new warnings - [x] Any dependent changes have been merged and published ## Screenshots (if applicable) <img width="1432" height="896" alt="chat-gemini" src="https://github.com/user-attachments/assets/903a0e9a-d05d-405a-b120-b4fd22f5dc6a" /> <img width="1431" height="892" alt="gemini-selection" src="https://github.com/user-attachments/assets/db1a3e60-ba79-4a51-9a3c-31a5637d1b5b" /> ## Additional Notes Gemini is performing really good, having in our openwork will be very helpful. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 09:17:49 -05:00
yindo closed this issue 2026-02-16 09:17:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/openwork#23