Skip to content

Release 0.13.1: Gemma 4 thinking mode, LiteRT-LM 0.10.0#211

Merged
DenisovAV merged 6 commits intomainfrom
feature/gemma4-thinking-mode
Apr 4, 2026
Merged

Release 0.13.1: Gemma 4 thinking mode, LiteRT-LM 0.10.0#211
DenisovAV merged 6 commits intomainfrom
feature/gemma4-thinking-mode

Conversation

@DenisovAV
Copy link
Copy Markdown
Owner

Summary

  • LiteRT-LM 0.10.0: Updated Android and JVM SDK from 0.9.0 to 0.10.0
  • Gemma 4 Thinking Mode: isThinking: true now works with Gemma 4 E2B/E4B models (Android, iOS, Desktop; not Web) via extraContext + streaming thought channels
  • Fix cancel download: Cancel download now works correctly (Fix: cancel download not working #196)
  • Fix large_file_handler platform support: Conditional imports for pub.dev platform analysis compatibility
  • Desktop JAR v0.13.1: Updated JAR version and SHA256 checksums in all 4 platform scripts (macOS setup_desktop.sh was stale at v0.12.6)

Pass enable_thinking as a Jinja template variable through extraContext
instead of injecting <|think|> as plain text in system prompt.

- Add enableThinking to Pigeon createSession (Android/iOS)
- Pass extraContext to LiteRT-LM sendMessage/sendMessageAsync
- Extract Message.channels["thought"] in streaming callbacks
- Add enable_thinking to gRPC proto and server implementation
- Revert <|think|> text injection in Dart createChat()
- Add integration tests for thinking mode (Android + macOS)
- Add unit tests for ModelThinkingFilter with Gemma 4 markers
Wrap angle brackets in backticks across 7 files to fix
22 pub.dev lints_core analysis warnings.
- LiteRT-LM 0.10.0 (Android + JVM SDK)
- Gemma 4 thinking mode via extraContext + streaming thought channels
- Fix cancel download (#196)
- Fix large_file_handler conditional imports for pub.dev platform support
- Update desktop JAR version and checksums in all platform scripts
…rity

- Android: combine thinking+text into single tryEmit to prevent content loss
- Android: fix stale streamJob on engine replacement, add @volatile
- Android: update MediaPipe audio capabilities dynamically after init
- iOS/Web: log warning when enableThinking=true (unsupported on MediaPipe)
- Web: fix StreamController leak in stopGeneration, reset initCompleter
- Desktop: throw on corrupt image instead of silent fallback
- Scripts: verify cached JAR checksum before reuse (all 4 platforms)
- Tests: wrap streaming tests in tester.runAsync, add platform guards
- Add /release skill for version bumps, JAR rebuild, checksums
@DenisovAV DenisovAV merged commit faa4bf9 into main Apr 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant