Commit 62fc2340 authored by nextime's avatar nextime

Fix syntax warnings and improve Gemini prompt template

- Fixed Python syntax warnings for invalid escape sequences in JS regex
- Updated Gemini prompt template to emphasize mandatory tool usage
- Changed Gemini response format from HTML tags to plain text with RESPONSE_ID markers
- Updated response detection logic for improved reliability
- Added Gemini model to supported models list in README
- Updated CHANGELOG with detailed changes
parent 437b2d53
......@@ -12,17 +12,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- UUID-based request identification for improved reliability
- Robust JSON parsing with error recovery mechanisms
- Support for partial JSON response extraction
- Critical tool usage requirement in Gemini prompt template
- RESPONSE_ID marker system for Gemini responses
- Enhanced tool compliance enforcement for Gemini model
### Changed
- **BREAKING**: Replaced spy word detection system with JSON-based response extraction
- Modified prompt injection to request structured JSON responses
- Improved response detection reliability and accuracy
- Enhanced error handling for malformed JSON responses
- **BREAKING**: Gemini response format changed from HTML pre/code tags to plain text with RESPONSE_ID markers
- Updated Gemini prompt template to emphasize mandatory tool usage when specified
### Fixed
- Resolved issues with complex HTML response parsing
- Improved detection of responses containing code blocks and special formatting
- Better handling of dynamic content and progressive response loading
- **Fixed Python syntax warnings**: Corrected invalid escape sequences in JavaScript regex patterns (lines 852, 1085, 1086)
- Improved Gemini response extraction reliability with plain text markers
## [0.1.0] - 2025-08-23
......
......@@ -17,10 +17,9 @@
## Supported Models
Currently configured models include:
- `grok:latest` - Grok AI via X/Twitter interface
- `grok-beta:latest` - Grok AI via grok.com
- `llama2:latest` - Mapped to Grok interface
- `codellama:latest` - Mapped to Grok interface
- `grok:latest` - Grok AI via X/Twitter interface (JSON-based responses)
- `grok-beta:latest` - Grok AI via grok.com (JSON-based responses)
- `gemini:latest` - Google Gemini via gemini.google.com (plain text with ID markers)
## Installation
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment