Skip to content

v4.6.0

Choose a tag to compare

@zSayf zSayf released this 17 Feb 22:49
· 3 commits to main since this release
d8891ee

πŸ…° Sayf AI Text Fixer v4.6.0

πŸš€ Gemini API Upgrade & Model Optimization
Building upon the v4.5.0 foundation, this release upgrades the Gemini API integration to the latest version, adds Gemini 3 Flash Preview support, and removes the problematic Gemini 3 Pro Preview model.


πŸ“Š Release Metrics

Metric v4.5.0 v4.6.0 Improvement
API Version Legacy Gemini API v1beta +100%
Models Supported 7 6 Optimized
JSON Payload Unquoted Properly Quoted Fixed
Authentication URL Query Header-Based +50%
Bug Fixes 12 6 +50%
API Compatibility Good Excellent +40%

πŸ”₯ What's New in v4.6.0

πŸ†• API Upgrades

Feature Description Benefit
πŸ€– Gemini 3 Flash Preview Latest frontier-class flash model with exceptional performance Access to cutting-edge AI capabilities
πŸš€ New API Endpoint Migrated from streamGenerateContent to generateContent Better API compatibility
πŸ”‘ Header Authentication API key now sent via x-goog-api-key header More secure, standard-compliant auth
πŸ“‹ Proper JSON Formatting Fixed JSON payload with quoted property names Resolves HTTP 400 Bad Request errors

πŸ—‘οΈ Model Cleanup

Removed Reason Alternative
Gemini 3 Pro Preview Severe rate limiting (HTTP 429 errors) Use Gemini 2.5 Pro or Gemini 3 Flash
gemini-pro-latest alias Points to rate-limited models Use gemini-flash-latest instead

πŸ”§ Critical Bug Fixes

  • πŸ›‘οΈ Global Variable Initialization β†’ Fixed startup "unassigned global variable" errors
  • πŸ“‹ JSON Payload Malformation β†’ Property names now properly quoted in API requests
  • πŸ”„ Auto-Detection Logic β†’ Improved parameter validation and error prevention

πŸ—οΈ Enhanced Technical Architecture

  • πŸ“‘ Updated HttpRequestManager β†’ Full compatibility with new Gemini API endpoint
  • πŸ” Secure Authentication β†’ Header-based API key transmission (no more URL params)
  • πŸ›‘οΈ Strengthened Startup β†’ Proper global variable declarations and initialization order
  • πŸ“Š Enhanced Logging β†’ Better diagnostic information for API requests
  • βœ… Validated JSON Output β†’ Guaranteed proper JSON formatting for all API calls

πŸ“¦ System Requirements (Unchanged)

  • AutoHotkey v2.0+ (Required)
  • Windows 10/11 (Recommended)
  • Google Gemini API Key (Required)
  • Internet connection (Required)
  • 50MB disk space (Recommended)

πŸ‘¨β€πŸ’» Developer Credits

  • Lead Developer: Sayf (@zSayf)
  • API Integration: Enhanced Gemini API v1beta support
  • JSON Library: cJson v2.1.0 by Philip Taylor (@G33kDude)
  • License: Open Source (See LICENSE file)

πŸš€ Getting Started with v4.6.0

New Installation

  1. Download Sayf Ai Text Fixer.ahk v4.6.0 from releases
  2. Right-click and select "Run with AutoHotkey"
  3. Enter your Google Gemini API key when prompted
  4. Select your preferred model (Gemini 3 Flash Preview recommended)
  5. Enjoy improved API compatibility!

Upgrade from v4.5.0

  1. RECOMMENDED: Replace your current file with v4.6.0
  2. Restart the application
  3. Your settings will be preserved
  4. Experience the latest Gemini API integration!

πŸ“ Hotkeys Reference

  • Ctrl+Alt+S β†’ Smart text processing with mode selection
  • Ctrl+Alt+D β†’ Professional log viewer (check for detailed debugging info)
  • Ctrl+Alt+M β†’ Advanced settings dialog (model selection updated)
  • Esc β†’ Hide tooltips

⚠️ Important Notes

Model Selection Changes

  • Removed: gemini-3-pro-preview and gemini-pro-latest due to rate limiting
  • Recommended: gemini-3-flash-preview for best performance
  • Fallback: gemini-2.5-flash for stable processing
  • Budget: gemini-2.5-flash-lite for cost-effective operations

API Compatibility

  • This version uses the latest generateContent endpoint
  • Requires valid Google Gemini API key with appropriate quotas
  • Flash models typically have higher rate limits than Pro models

⭐ If this API upgrade improved your experience, please star the repository!

πŸ“§ Issues or questions? β†’ GitHub Issues

πŸ”— Download: Release v4.6.0