[PR #11] [CLOSED] fix: upgrade to Gemini 3 Flash Preview, refactor & bug fixes #9

Closed
opened 2026-03-01 14:51:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/atiilla/GeoIntel/pull/11
Author: @PierrunoYT
Created: 2/27/2026
Status: Closed

Base: mainHead: v2


📝 Commits (6)

  • af30dba fix: detect actual image MIME type instead of hardcoding image/jpeg
  • 2db2047 refactor: remove dead code and consolidate duplicated logic
  • 4fd578c chore: upgrade to gemini-3-flash and update API to v1beta
  • db7f36b chore(setup): update model reference to Gemini 3 Flash
  • 56c4ffb fix: correct Gemini model name to gemini-3-flash-preview
  • 3edf40c Harden web upload handling and response parsing

📊 Changes

12 files changed (+1705 additions, -1539 deletions)

View changed files

📝 geointel/__init__.py (+0 -2)
📝 geointel/api_client.py (+23 -39)
📝 geointel/config.py (+2 -3)
📝 geointel/exceptions.py (+0 -3)
📝 geointel/geointel.py (+55 -56)
📝 geointel/image_processor.py (+132 -72)
📝 geointel/response_parser.py (+187 -140)
📝 geointel/web_server.py (+166 -178)
📝 geointel_ui_template/index.html (+1065 -1045)
📝 setup.py (+1 -1)
tests/test_image_processor.py (+33 -0)
tests/test_response_parser.py (+41 -0)

📄 Description

Summary

Upgrades the model and fixes several bugs from the \ 2\ branch.

Fixes

  • Detect actual image MIME type instead of hardcoding \image/jpeg\
  • Correct Gemini model name to \gemini-3-flash-preview\ (was returning 404 with \gemini-3-flash)

Refactor

  • Remove dead code and consolidate duplicated logic

Chore

  • Upgrade API base URL to \ 1beta\ and switch to \gemini-3-flash-preview\
  • Update \setup.py\ description to reflect new model

🔄 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/atiilla/GeoIntel/pull/11 **Author:** [@PierrunoYT](https://github.com/PierrunoYT) **Created:** 2/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `v2` --- ### 📝 Commits (6) - [`af30dba`](https://github.com/atiilla/GeoIntel/commit/af30dbaf77a6c77f792e8aa135cc3f0e146c3e3a) fix: detect actual image MIME type instead of hardcoding image/jpeg - [`2db2047`](https://github.com/atiilla/GeoIntel/commit/2db2047ac5f43abc511f3ba2fac4ae9efc9cac15) refactor: remove dead code and consolidate duplicated logic - [`4fd578c`](https://github.com/atiilla/GeoIntel/commit/4fd578cfe3060367b3db484682ff76987fc69b43) chore: upgrade to gemini-3-flash and update API to v1beta - [`db7f36b`](https://github.com/atiilla/GeoIntel/commit/db7f36b413908cda9ad5b9c58d5b550742089fb5) chore(setup): update model reference to Gemini 3 Flash - [`56c4ffb`](https://github.com/atiilla/GeoIntel/commit/56c4ffb92e0c6f45e6d8bdb933b7f22d75a8daaa) fix: correct Gemini model name to gemini-3-flash-preview - [`3edf40c`](https://github.com/atiilla/GeoIntel/commit/3edf40cdecd77e42b975008cd5662a0544978414) Harden web upload handling and response parsing ### 📊 Changes **12 files changed** (+1705 additions, -1539 deletions) <details> <summary>View changed files</summary> 📝 `geointel/__init__.py` (+0 -2) 📝 `geointel/api_client.py` (+23 -39) 📝 `geointel/config.py` (+2 -3) 📝 `geointel/exceptions.py` (+0 -3) 📝 `geointel/geointel.py` (+55 -56) 📝 `geointel/image_processor.py` (+132 -72) 📝 `geointel/response_parser.py` (+187 -140) 📝 `geointel/web_server.py` (+166 -178) 📝 `geointel_ui_template/index.html` (+1065 -1045) 📝 `setup.py` (+1 -1) ➕ `tests/test_image_processor.py` (+33 -0) ➕ `tests/test_response_parser.py` (+41 -0) </details> ### 📄 Description ## Summary Upgrades the model and fixes several bugs from the \ 2\ branch. ### Fixes - Detect actual image MIME type instead of hardcoding \image/jpeg\ - Correct Gemini model name to \gemini-3-flash-preview\ (was returning 404 with \gemini-3-flash\) ### Refactor - Remove dead code and consolidate duplicated logic ### Chore - Upgrade API base URL to \ 1beta\ and switch to \gemini-3-flash-preview\ - Update \setup.py\ description to reflect new model --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem changed title from [PR #11] fix: upgrade to Gemini 3 Flash Preview, refactor & bug fixes to [PR #11] [CLOSED] fix: upgrade to Gemini 3 Flash Preview, refactor & bug fixes 2026-03-15 11:26:30 +03:00
kerem closed this issue 2026-03-15 11:26:45 +03:00
Sign in to join this conversation.
No labels
pull-request
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
starred/GeoIntel#9
No description provided.