[PR #1851] [CLOSED] Gemini api: add gemini api endpoint like openai and anthropic #3718

Closed
opened 2026-11-07 15:30:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1851
Author: @hiddenWarrior
Created: 10/10/2026
Status: ❌ Closed

Base: main ← Head: GeminiApi


📝 Commits (3)

  • df264e3 Gemini API: generateContent, streamGenerateContent and countTokens for Gemini CLI
  • 74298e0 Gemini API: fix error codes, countTokens, thinking and tool choice; add structured output
  • 0c94b60 Telemetry: close() waits for the sampler thread to end

📊 Changes

9 files changed (+1113 additions, -8 deletions)

View changed files

📝 docs/AI_SETUP.md (+6 -0)
📝 docs/DETAILS.md (+58 -1)
➕ serve/gemini.py (+389 -0)
📝 serve/server.py (+135 -4)
📝 serve/telemetry.py (+7 -2)
➕ serve/test_gemini.py (+497 -0)
📝 serve/test_responses.py (+19 -0)
📝 serve/web/app.js (+1 -0)
📝 serve/web/index.html (+1 -1)

📄 Description

Title

Issue: Resolves #

Summary

What changed

Extra Notes


🔄 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/Niko1221/Strata/pull/1851 **Author:** [@hiddenWarrior](https://github.com/hiddenWarrior) **Created:** 10/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `GeminiApi` --- ### 📝 Commits (3) - [`df264e3`](https://github.com/Niko1221/Strata/commit/df264e3cefd054e351e631b5bbe2bde04d577c21) Gemini API: generateContent, streamGenerateContent and countTokens for Gemini CLI - [`74298e0`](https://github.com/Niko1221/Strata/commit/74298e0e20af84b85fa25d831b7bce87d0e51b3d) Gemini API: fix error codes, countTokens, thinking and tool choice; add structured output - [`0c94b60`](https://github.com/Niko1221/Strata/commit/0c94b60691bf0b1d6bbe1cfed8d2b54327e9ba1d) Telemetry: close() waits for the sampler thread to end ### 📊 Changes **9 files changed** (+1113 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/AI_SETUP.md` (+6 -0) 📝 `docs/DETAILS.md` (+58 -1) ➕ `serve/gemini.py` (+389 -0) 📝 `serve/server.py` (+135 -4) 📝 `serve/telemetry.py` (+7 -2) ➕ `serve/test_gemini.py` (+497 -0) 📝 `serve/test_responses.py` (+19 -0) 📝 `serve/web/app.js` (+1 -0) 📝 `serve/web/index.html` (+1 -1) </details> ### 📄 Description ## Title <!-- If Applicable, reference the GitHub issue --> Issue: Resolves # ## Summary <!-- Quick Summary of changes --> ## What changed <!-- Specifics on files changed, and what changes were made there --> ## Extra Notes <!-- Any extra notes, delete if there are none --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3718
No description provided.