Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
a8b7548
Enhance chat functionality by adding text alignment options in Select…
timmyy123 Aug 28, 2025
3f0ea2b
Update version to 1.0.8 in AboutScreen and change model selection ico…
timmyy123 Aug 28, 2025
3d04364
Update versionCode to 8 and versionName to 1.0.8 in output-metadata.j…
timmyy123 Aug 29, 2025
6d935f8
feat: Add web search functionality to enhance response generation
timmyy123 Aug 29, 2025
24db516
feat: Implement session reset tracking and handling in ChatViewModel …
timmyy123 Aug 29, 2025
69c292a
refactor: Clean up unused imports and optimize code structure in Chat…
timmyy123 Aug 29, 2025
3877eb6
Merge pull request #3 from timmyy123/web-search
timmyy123 Aug 29, 2025
0175c24
Add localized string resources for Spanish, French, Portuguese, and R…
timmyy123 Aug 29, 2025
6cbbe8d
Merge branch 'main' of https://github.com/timmyy123/LLM-Hub
timmyy123 Aug 29, 2025
37dea20
Add localization updates and new features for LLM Hub
timmyy123 Aug 29, 2025
3e10a2b
Update version to 1.0.9 and enhance markdown parsing functionality
timmyy123 Sep 2, 2025
3d5a764
Update version to 1.1.0 and enhance loading indicators
timmyy123 Sep 2, 2025
948693a
feat: Enhance file attachment support in chat
timmyy123 Sep 2, 2025
cf10792
feat: Trim trailing whitespace in message content updates to improve …
timmyy123 Sep 2, 2025
6a9c1e7
feat: Add pause and resume functionality for model downloads
timmyy123 Sep 3, 2025
ad7e957
refactor: Remove broadcast receiver and service integration for model…
timmyy123 Sep 3, 2025
cad0847
feat: Implement activity-scoped ViewModel for persistent model downlo…
timmyy123 Sep 3, 2025
1dd387d
feat: Add BackendSelectionDialog component for backend selection in m…
timmyy123 Sep 3, 2025
662531e
feat: Update GPU backend selection logic for low memory devices and a…
timmyy123 Sep 3, 2025
d3017ae
feat: Implement RAG (Document Chat) functionality with embedding serv…
timmyy123 Sep 8, 2025
ef43f4a
feat: Enhance NDK configuration for native library handling and updat…
timmyy123 Sep 8, 2025
4b3a954
feat: Add audio recording support and enhance multimodal capabilities
timmyy123 Sep 9, 2025
67495d1
feat: Enhance audio processing and localization support across the ap…
timmyy123 Sep 9, 2025
4ab4073
feat: Localize image and audio actions, update model names, and enhan…
timmyy123 Sep 9, 2025
ed9d5ea
feat: Integrate Gecko Embedding Model and UI for Embedding Model Sele…
timmyy123 Sep 9, 2025
9776e7b
feat: Implement embedding model selection and status management, enha…
timmyy123 Sep 10, 2025
08ebeb0
Add global memory management features and localization updates
timmyy123 Sep 10, 2025
5d9d054
feat: Enhance global memory management with lazy initialization, impr…
timmyy123 Sep 10, 2025
f633e78
feat: Implement chunk-level embedding persistence, enhance memory res…
timmyy123 Sep 11, 2025
62ba1a1
fix: Correct string formatting in ChatViewModel and enhance memory in…
timmyy123 Sep 11, 2025
fe66c4c
feat: Enhance RAG functionality with global memory replication and im…
timmyy123 Sep 11, 2025
cac830b
fix: Remove numeric document count from CompactRagIndicator to avoid …
timmyy123 Sep 11, 2025
2641f1b
feat: Enhance FilePreviewDialog with confirmation action and clear al…
timmyy123 Sep 11, 2025
b5eae2b
feat: Improve UI responsiveness in ChatDrawer and SettingsScreen with…
timmyy123 Sep 11, 2025
3459a16
feat: Enhance UI responsiveness in BackendSelectionDialog, ChatScreen…
timmyy123 Sep 11, 2025
8c26c49
feat: Improve responsive layout in ChatDrawer and SettingsScreen for …
timmyy123 Sep 11, 2025
6e1dd4f
feat: Enhance scrolling behavior in ChatDrawer and SettingsScreen for…
timmyy123 Sep 11, 2025
6362a70
feat: Adjust padding and spacing in ChatDrawer for improved layout co…
timmyy123 Sep 11, 2025
991f568
feat: Update GPU support indicators in ModelFamilyCard and ModelVaria…
timmyy123 Sep 11, 2025
4260ff3
feat: Implement ModelConfigsDialog for configuring model parameters a…
timmyy123 Sep 12, 2025
b7dcf49
feat: Enhance responsiveness of ModelConfigsDialog for improved usabi…
timmyy123 Sep 12, 2025
5512d6d
feat: Improve layout and responsiveness of ModelConfigsDialog for bet…
timmyy123 Sep 12, 2025
bdb4da9
feat: Add runtime update for generation parameters in inference servi…
timmyy123 Sep 12, 2025
8c68d97
feat: Enhance GPU selection and modality options in BackendSelectionD…
timmyy123 Sep 12, 2025
35d39da
refactor: Remove BackendSelectionDialog and streamline GPU selection …
timmyy123 Sep 12, 2025
ef1c034
feat: Add modality state checks for vision and audio in InferenceServ…
timmyy123 Sep 13, 2025
ca8200f
refactor: Simplify audio support handling in InferenceService and rem…
timmyy123 Sep 13, 2025
1f94375
refactor: Enhance audio handling in ChatViewModel to differentiate be…
timmyy123 Sep 13, 2025
75a34a0
feat: Implement one-time audio warm-up delay and enhance PCM to float…
timmyy123 Sep 13, 2025
2d22402
feat: Add file type validation for memory uploads in SettingsScreen a…
timmyy123 Sep 13, 2025
15ed742
feat: Implement code block parsing and rendering in Markdown for enha…
timmyy123 Sep 13, 2025
27ff191
chore: Update Android Gradle Plugin version to 8.12.3
timmyy123 Sep 13, 2025
83a2626
feat: Improve message bubble layout and text rendering for user messa…
timmyy123 Sep 13, 2025
8937e51
feat: Enhance memory injection logic in ChatViewModel with lexical ov…
timmyy123 Sep 13, 2025
7218f62
chore: Remove deprecated files and components to streamline codebase …
timmyy123 Sep 13, 2025
68a3258
feat: Conditionally display compact RAG indicator based on embeddings…
timmyy123 Sep 13, 2025
8b979b0
feat: Implement drawer state management in ChatScreen to handle lands…
timmyy123 Sep 13, 2025
e6fd4cb
feat: Update version code and name to 2.0 across all relevant files; …
timmyy123 Sep 14, 2025
bfd6c4c
chore: Remove .gitattributes and README.md to streamline project docu…
timmyy123 Sep 14, 2025
b69d8f2
feat: Add web search integration for document lookups and model respo…
timmyy123 Sep 14, 2025
c9b7fa3
Implement structural updates and optimizations across multiple modules
timmyy123 Sep 16, 2025
493a574
fix: Enhance screenshot display in README for better layout and acces…
timmyy123 Sep 16, 2025
798827b
fix: Improve screenshot layout in README for better accessibility and…
timmyy123 Sep 16, 2025
0ba2f57
fix: Update screenshot layout in README for improved accessibility an…
timmyy123 Sep 16, 2025
d3ca1e1
fix: Refactor screenshot layout in README for improved accessibility …
timmyy123 Sep 16, 2025
9e9c979
fix: Update screenshot layout in README for improved accessibility an…
timmyy123 Sep 16, 2025
5c67ed6
fix: Comment out figcaptions in README screenshots for cleaner layout
timmyy123 Sep 16, 2025
3de1c4a
fix: Rearrange screenshot figures in README for improved layout consi…
timmyy123 Sep 16, 2025
517aed2
fix: Update GPU support and model details for Phi-4 Mini in ModelData
timmyy123 Sep 16, 2025
bdccace
feat: Add Italian language support and update locale handling
timmyy123 Sep 16, 2025
cbd8612
feat: Implement model configuration preferences and reset functionality
timmyy123 Sep 16, 2025
885ad92
fix: Update Phi-4 Mini configuration to default to CPU for stability …
timmyy123 Sep 16, 2025
e24c7f1
fix: Increase maximum width of MessageBubble for better layout
timmyy123 Sep 16, 2025
ce9fc1a
chore: Bump version to 2.1 in build files and update version strings …
timmyy123 Sep 16, 2025
0c47c20
chore: Update version to 2.1.1 in build files and all locale strings
timmyy123 Sep 18, 2025
f7a5514
fix: Update GPU support details for Phi-4 Mini and simplify model con…
timmyy123 Sep 20, 2025
4be9dc8
feat: Implement external model import functionality and enhance model…
timmyy123 Sep 21, 2025
347d411
feat: Enhance model import process with file validation and localized…
timmyy123 Sep 21, 2025
317c460
feat: Update model format to 'task' and enhance import dialog with co…
timmyy123 Sep 21, 2025
9adeb98
refactor: Simplify similarity filtering logic in RagService and enhan…
timmyy123 Sep 21, 2025
2639200
refactor: Streamline document handling in ChatViewModel to prioritize…
timmyy123 Sep 21, 2025
dd410f9
feat: Implement smart chunking for document processing in MemoryProce…
timmyy123 Sep 21, 2025
644c201
feat: Add GPU backend support and improve session management in Infer…
timmyy123 Sep 21, 2025
265ba3f
feat: Enhance token estimation and repetition detection in InferenceS…
timmyy123 Sep 22, 2025
e767c08
feat: Add final prompt validation and output sanitization in ChatView…
timmyy123 Sep 22, 2025
4443fe3
feat: Enhance AudioMessageCard with waveform playback visualization a…
timmyy123 Sep 22, 2025
bd6af48
feat: Add message editing functionality in Chat components and ViewMo…
timmyy123 Sep 22, 2025
b756c11
refactor: Simplify ModelLoadingIndicator animations by removing glow …
timmyy123 Sep 22, 2025
f20bb48
feat: Implement re-embedding functionality for global memory when emb…
timmyy123 Sep 22, 2025
f4a4356
fix: Improve session recovery logic in InferenceService to handle ben…
timmyy123 Sep 22, 2025
bf8b9b0
chore: Update version number to 2.2 in build configuration and locali…
timmyy123 Sep 22, 2025
149439b
chore: Increment versionCode to 18 and update localization keywords f…
timmyy123 Sep 22, 2025
2a1e755
chore: Update versionCode to 18; enhance token management and session…
timmyy123 Sep 23, 2025
3624906
fix: Adjust default GPU usage logic in ModelConfigsDialog to disable …
timmyy123 Sep 23, 2025
c0fdf09
fix: Update ChatViewModel to improve document chunk formatting and cl…
timmyy123 Sep 23, 2025
5d79e9f
fix: Refine token estimation in InferenceService and enhance streamin…
timmyy123 Sep 23, 2025
67986ee
chore: Increment versionCode to 19 and update versionName to 2.2.1; e…
timmyy123 Sep 23, 2025
587bb29
fix: Update MediaPipe dependencies to latest versions for improved fu…
timmyy123 Oct 4, 2025
46777c8
feat: Implement HomeScreen and WritingAidScreen with animations and f…
timmyy123 Oct 5, 2025
7ead959
Refactor model loading and availability management
timmyy123 Oct 5, 2025
3f3feb3
feat: Enhance Transcriber functionality with audio recording and play…
timmyy123 Oct 5, 2025
6fd894d
feat: Enhance WritingAidScreen with new tone options and settings; up…
timmyy123 Oct 5, 2025
9429207
feat: Introduce Scam Detector feature with UI and ViewModel
timmyy123 Oct 6, 2025
448aea9
feat: Implement model unloading and cleanup across various screens an…
timmyy123 Oct 6, 2025
9a4cb0c
feat: Enhance UI and functionality across various screens; add locali…
timmyy123 Oct 6, 2025
97c4b05
feat: Update MediaPipe Tasks to version 0.10.29; add notes on initial…
timmyy123 Oct 6, 2025
d3ea3fc
feat: Bump version to 3.0; update version codes and names in metadata…
timmyy123 Oct 6, 2025
65a73f4
Refactor code structure for improved readability and maintainability
timmyy123 Oct 6, 2025
2056d68
chore: Comment out figcaptions in screenshots section for cleaner dis…
timmyy123 Oct 6, 2025
16b6e03
feat: Add language mapping for AI prompts and update translation logi…
timmyy123 Oct 7, 2025
c786e9a
feat: Update version number to 3.0.1 across all language resources an…
timmyy123 Oct 7, 2025
a806a47
feat: Update versionCode to 21 and versionName to 3.0.1 in output met…
timmyy123 Oct 7, 2025
9bf434d
feat: Update README with improved screenshot captions and add custom …
timmyy123 Oct 7, 2025
c1a6f98
chore: Comment out figcaptions in screenshots section for cleaner dis…
timmyy123 Oct 7, 2025
df41bcb
feat: Refactor model selection logic in ScamDetectorViewModel and add…
timmyy123 Oct 7, 2025
3b6debf
feat: Update versionCode to 22 in build configuration and output meta…
timmyy123 Oct 7, 2025
dadf5b3
feat: Improve model format selection UI in ImportExternalModelDialog
timmyy123 Oct 7, 2025
b233ebc
feat: Update version to 3.0.2 and enhance audio recording features wi…
timmyy123 Oct 7, 2025
9885efe
feat: Update version to 3.0.3 and enhance audio recording features wi…
timmyy123 Oct 7, 2025
0ff62d8
feat: Update localagents-rag dependency to version 0.3.0, increment v…
timmyy123 Oct 9, 2025
8d6ad3d
feat: Implement model-specific thresholds for EmbeddingGemma and Geck…
timmyy123 Oct 9, 2025
02d9ef8
feat: Add chat history import feature with UI components and data flo…
timmyy123 Oct 9, 2025
57e57db
feat: Add chat history import functionality and memory editing featur…
timmyy123 Oct 9, 2025
ae8bd4e
feat: Remove real-time repetition and length checks from ChatViewMode…
timmyy123 Oct 10, 2025
1f74679
feat: Update versionCode to 25 and versionName to 3.1 across all rele…
timmyy123 Oct 10, 2025
f33a4f2
feat: Update README with enhanced model specifications and new embedd…
timmyy123 Oct 10, 2025
89134db
add new locales
timmyy123 Oct 12, 2025
c0f4cb2
feat: Update version to 3.1.1 across all relevant files and localizat…
timmyy123 Oct 12, 2025
78d4362
feat: Update versionCode to 27 and add vertical scrolling to multiple…
timmyy123 Oct 12, 2025
944962c
Added Korean locale
timmyy123 Oct 16, 2025
6bc7ace
feat: Update default vision and audio settings for Gemma-3n models in…
timmyy123 Oct 16, 2025
36d31d2
feat: Add Text-to-Speech (TTS) functionality with auto-readout feature
timmyy123 Oct 16, 2025
a1ab401
feat: Enhance language detection in TtsService for improved auto-dete…
timmyy123 Oct 16, 2025
34c6bc1
feat: Refactor audio handling in ChatViewModel to improve instruction…
timmyy123 Oct 16, 2025
b779d1f
feat: Update version number to 3.2 across all language resources and …
timmyy123 Oct 16, 2025
4539dc0
feat: Update Play Store description and README to include new TTS fea…
timmyy123 Oct 16, 2025
274e359
feat: Set TTS language to app locale for improved speech accuracy in …
timmyy123 Oct 16, 2025
02c7421
feat: Update AboutScreen layout and icon presentation for improved vi…
timmyy123 Oct 16, 2025
7bb7f48
feat: Update versionCode to 29 for release build
timmyy123 Oct 16, 2025
9785357
feat: Update Llama-3.2 model entries with new details and sources
timmyy123 Oct 18, 2025
47cb28a
feat: Update versionCode and versionName to 30 and 3.2.1 respectively
timmyy123 Oct 18, 2025
d5e3e1f
feat: Increment versionCode to 31 and update versionName to 3.2.1
timmyy123 Oct 18, 2025
8aa2252
feat: Add GitHub repository feature card and update localization strings
timmyy123 Oct 21, 2025
cd70d1c
refactor: Simplify TranslatorScreen layout for audio and text modes
timmyy123 Oct 21, 2025
0c3dcbe
feat: Increment versionCode to 32 and update versionName to 3.2.2
timmyy123 Oct 21, 2025
40a1c39
feat: Update Play Store description and .gitignore for new TTS features
timmyy123 Oct 21, 2025
bbf70c1
feat: Update TTS functionality to support manual streaming and append…
timmyy123 Oct 25, 2025
495133c
feat: Enhance code block rendering with copy functionality
timmyy123 Oct 25, 2025
bc51b43
feat: Add language matching instruction to ScamDetector and WritingAi…
timmyy123 Oct 25, 2025
61a4ce9
feat: Implement actual token count retrieval in InferenceService and …
timmyy123 Oct 25, 2025
a9ae450
Add web search and vision model error messages in multiple languages
timmyy123 Oct 25, 2025
a651a49
feat: Update version number to 3.2.3 in build files and localization …
timmyy123 Oct 25, 2025
9301978
feat: Update .gitignore to include LLM-Hub and mark subproject as dirty
timmyy123 Oct 25, 2025
b462f42
feat: Remove LLM-Hub subproject reference
timmyy123 Oct 25, 2025
9eec01d
feat: Increment versionCode to 39 in build files and output metadata
timmyy123 Oct 26, 2025
9e2bb6c
feat: Increment versionCode to 40 and implement accurate token count …
timmyy123 Oct 26, 2025
dc3e7dd
feat: Update ChatViewModelFactory to use application-scoped Inference…
timmyy123 Oct 26, 2025
2524d00
feat: Increment versionCode to 41 in build files and output metadata
timmyy123 Oct 26, 2025
629b376
feat: Increment versionCode to 42 and enhance auto-regeneration logic…
timmyy123 Oct 28, 2025
4b34957
feat: Update versionName to 3.2.4 and synchronize versioning across l…
timmyy123 Oct 28, 2025
570d69a
feat: Enhance repetition detection for Gemma-3 1B models in Inference…
timmyy123 Oct 28, 2025
b214da7
feat: Enhance auto-regeneration flow in ChatViewModel with TTS support
timmyy123 Oct 29, 2025
75ae2aa
feat: Increment versionCode to 43 in build files and output metadata
timmyy123 Oct 29, 2025
30df2cd
feat: Increment versionCode to 44 and update versionName to 3.2.5
timmyy123 Oct 30, 2025
1a60aa5
chore: Update versionCode to 44 in build files and output metadata
timmyy123 Oct 30, 2025
075e574
feat: Increment versionCode to 45 and update versionName to 3.2.6
timmyy123 Nov 5, 2025
390dc3a
Update version code and localized strings for multiple languages
timmyy123 Nov 5, 2025
33648a3
chore: Update VCS mapping and model data URLs
timmyy123 Dec 6, 2025
48e6d2d
chore: Increment versionCode to 48 and update versionName to 3.2.7
timmyy123 Dec 6, 2025
9b332e4
feat: Add code style configuration and markdown settings
timmyy123 Dec 26, 2025
e17fc0a
Refactor code structure for improved readability and maintainability
timmyy123 Dec 26, 2025
8bd2f66
fix(tts): allow discovery of system TTS engines via manifest queries
twinstef2024 Dec 26, 2025
5cb5922
added image generation feature
timmyy123 Dec 26, 2025
b11702b
Merge pull request #23 from twinstef/main
timmyy123 Dec 26, 2025
64d7a57
feat: Enhance model deletion logic for Stable Diffusion formats and i…
timmyy123 Dec 27, 2025
a85fe05
feat: Update vision model descriptions to reflect multimodal capabili…
timmyy123 Dec 27, 2025
37aba8a
feat: Update README and metadata for version 3.3; add image generatio…
timmyy123 Dec 27, 2025
2669d3e
feat: Update version code to 50, enhance download logic for resuming …
timmyy123 Dec 27, 2025
f585b65
feat: Increment version code to 51 and enhance download progress indi…
timmyy123 Dec 27, 2025
71648fe
Refactor code structure for improved readability and maintainability
timmyy123 Dec 27, 2025
8da7897
fix: Update language interfaces count from 18 to 16 in README
timmyy123 Jan 1, 2026
359c109
feat: Update deployment target selection and enhance HomeScreen layou…
timmyy123 Jan 12, 2026
0cb5cac
refactor: Persist drawer state across configuration changes and simpl…
timmyy123 Jan 12, 2026
e22ef61
feat: Update notification icon for improved clarity and add new notif…
timmyy123 Jan 12, 2026
27c05bb
feat: Limit maximum width of loading indicator for better layout control
timmyy123 Jan 12, 2026
b5f1e2a
feat: Implement ChatSettingsSheet for model selection and configurati…
timmyy123 Jan 12, 2026
0b26eef
feat: Implement image-to-image (img2img) functionality with denoise s…
timmyy123 Jan 12, 2026
372d3f0
Add credits for Stable Diffusion models and update various strings ac…
timmyy123 Jan 12, 2026
ba53252
feat: Add GPU acceleration option for image generation and update ver…
timmyy123 Jan 13, 2026
529fbfd
feat: Update version number to 3.4 in multiple files
timmyy123 Jan 13, 2026
47e5001
feat: Increment version code to 56 and implement fullscreen image vie…
timmyy123 Jan 13, 2026
f4eb104
feat: Initialize Android application project with build configuration…
timmyy123 Feb 6, 2026
e158d6c
Fixed Custom image models disappear after uninstalling app-native Abs…
timmyy123 Feb 6, 2026
4d276e0
feat: Enhance model support and UI improvements
timmyy123 Feb 7, 2026
6e40b81
feat: Introduce `OnnxInferenceService` for ONNX model inference, supp…
timmyy123 Feb 7, 2026
0523369
Refactor ChatViewModel and ModelDownloadViewModel for improved model …
timmyy123 Feb 8, 2026
eb1f679
feat: Update model size checks and enhance file handling for ONNX and…
timmyy123 Feb 8, 2026
2e49cc7
feat: Update Gradle and Kotlin versions, enhance image handling in Sc…
timmyy123 Feb 8, 2026
d227af9
feat: Update max tokens handling in ChatSettingsSheet and add new Lla…
timmyy123 Feb 9, 2026
a4a41e3
feat: Add GGUF model format support and update validation for model i…
timmyy123 Feb 9, 2026
1d5d90a
feat: Add support for Granite 4.0 H-Tiny and H-Small models in GGUF f…
timmyy123 Feb 9, 2026
8842ff0
Merge pull request #33 from timmyy123/3.5
timmyy123 Feb 9, 2026
9fa3a84
Bump version to 3.5 and update acknowledgments
timmyy123 Feb 9, 2026
2c27b64
optimized aab bundle
timmyy123 Feb 9, 2026
0c0f531
fixed proguard error
timmyy123 Feb 9, 2026
8da8b15
chore: Update versionCode to 65 and add support for 16 KB page size i…
timmyy123 Feb 9, 2026
edae2b1
feat: Enhance web search functionality and model loading in NexaInfer…
timmyy123 Feb 10, 2026
b077fdc
feat: implement GitHub star display.
timmyy123 Feb 10, 2026
c46fc60
feat: Initialize project build configuration and add extensive multi-…
timmyy123 Feb 10, 2026
ac2cf3e
feat: Introduce multi-language support with new string resources for …
timmyy123 Feb 10, 2026
70b0a04
feat: Add Star History chart to README.
timmyy123 Feb 10, 2026
169c984
feat: Add Gemma-3 GGUF multimodal models (4B & 12B) with vision proje…
timmyy123 Feb 12, 2026
5dd545f
feat: Enhance vision model support with external projector checks and…
timmyy123 Feb 12, 2026
17ec323
feat: Enhance NexaInferenceService with image preparation timing and …
timmyy123 Feb 12, 2026
e857914
feat: Enhance model import functionality with Vision Projector support
timmyy123 Feb 12, 2026
737b4f7
Refactor code structure for improved readability and maintainability
timmyy123 Feb 12, 2026
48ac3fc
feat: Improve NexaInferenceService availability checks in UnifiedInfe…
timmyy123 Feb 12, 2026
1ef058e
branch initial commit for new tools: vibes (vibe coding) and creAItor…
jayinatlanta Feb 13, 2026
fb76690
feat: Enhance Inference Services with NPU Device Support
timmyy123 Feb 13, 2026
4f02b05
feat: Add NPU badge display logic for model variants based on chipset…
timmyy123 Feb 13, 2026
5cfe465
feat: Integrate NPU device support across model selection and chat se…
timmyy123 Feb 13, 2026
63b8b93
feat: Refactor RAG initialization and memory restoration logic in Cha…
timmyy123 Feb 13, 2026
0acc04d
feat: Update version number to 3.5.3 in build configuration and local…
timmyy123 Feb 13, 2026
d2d9b46
feat: Update version code to 70 and adjust deployment target settings…
timmyy123 Feb 13, 2026
d5223cf
feat: Update version code to 71 and version name to 3.5.4; change dep…
timmyy123 Feb 13, 2026
ddb8d4f
hf: reduce delay on display of two new tools cards
jayinatlanta Feb 13, 2026
9e857e6
branch commit: Vibes (vibe coding) & creAItor (custom persona like Ge…
jayinatlanta Feb 13, 2026
330b928
Merge branch 'vibe-and-create' of https://github.com/jayinatlanta/LLM…
jayinatlanta Feb 13, 2026
d83c008
Merge branch 'main' into vibe-and-creAItor
jayinatlanta Feb 13, 2026
f988388
Merge pull request #1 from jayinatlanta:vibe-and-creAItor
jayinatlanta Feb 13, 2026
8541a8d
feat: Update deployment target device identifier and add GGUF compati…
timmyy123 Feb 13, 2026
cba4bf0
hf: logistical fixes
jayinatlanta Feb 13, 2026
e7cec84
feat: Add MIT License to the repository
timmyy123 Feb 14, 2026
14150d2
Merge branch 'timmyy123:main' into main
jayinatlanta Feb 14, 2026
2f8b0c2
Merge remote-tracking branch 'origin/main' into feature/vibes-and-cre…
jayinatlanta Feb 14, 2026
ad70fd3
hf: restore back button in chat
jayinatlanta Feb 14, 2026
b4b6021
feat: chat screen improvements, auto naming, renaming
jayinatlanta Feb 14, 2026
266faa6
hf: add strings
jayinatlanta Feb 14, 2026
4280410
hf: apply UI updates elsewhere
jayinatlanta Feb 14, 2026
f4c7313
hf: clearly indicate when model is not loaded
jayinatlanta Feb 14, 2026
1e4ab02
feat: kid mode
jayinatlanta Feb 14, 2026
8235cae
hf: security dependency
jayinatlanta Feb 14, 2026
8260d70
hf: upgraded crypto api
jayinatlanta Feb 14, 2026
4f58661
Merge pull request #2 from jayinatlanta/feature/vibes-and-creAItors
jayinatlanta Feb 14, 2026
158170d
Remove .vscode/settings.json from repository
jayinatlanta Feb 14, 2026
3a94fbc
Merge branch 'main' of https://github.com/jayinatlanta/LLM-Vibe-Hub
jayinatlanta Feb 14, 2026
303ae46
hf: fix scroll delay for final tools
jayinatlanta Feb 15, 2026
0cfec0a
docs: update readme
jayinatlanta Feb 15, 2026
d0e2d15
docs: creAItor explanation
jayinatlanta Feb 15, 2026
fbd665e
cosmetic: improve UI and styling when creAItor generation is completed
jayinatlanta Feb 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# LLM-Vibe-Hub: Copilot Instructions

## Project Overview
**LLM-Vibe-Hub** is a privacy-first Android app providing on-device LLM chat, image generation, writing aids, transcription, translation, and scam detection. All inference runs locally with GPU/NPU acceleration.

## Architecture Essentials

### Multi-Runtime Inference System
The app routes models through three parallel inference backends in [UnifiedInferenceService.kt](app/src/main/java/com/llmhub/llmhub/inference/UnifiedInferenceService.kt):

1. **MediaPipe LiteRT** (`MediaPipeInferenceService`) — `.task`/`.litertlm` models (legacy)
2. **ONNX Runtime** (`OnnxInferenceService`) — `.onnx` models with NNAPI GPU acceleration; handles Ministral-3 vision encoder and Ministral/Mistral chat templates with `[INST].../[INST]` formatting
3. **Nexa SDK** (`NexaInferenceService`) — `.gguf` models; includes vision (VLM) support via `VlmWrapper`; requires image downscaling to 300px max for performance

**Selection logic**: Model format in [LLMModel.kt](app/src/main/java/com/llmhub/llmhub/data/LLMModel.kt) (`modelFormat` field) determines which service loads the model. **Important**: Nexa's `libonnxruntime.so` can conflict with ONNX Runtime's; clean builds required if UnsatisfiedLinkError occurs.

### Image Generation (Stable Diffusion)
Native `libstable_diffusion_core.so` runs as a subprocess (not JNI) started by `SDBackendService`. It spins an HTTP server on `127.0.0.1:8081`, accepts prompts/config, returns PNG data. Supports:
- **QNN (NPU)** backend: `libQnnHtp.so` + version-specific libs from `app/src/main/assets/qnnlibs/`
- **MNN (CPU)** backend: Model files in `app/src/main/assets/cvtbase/` (clip, unet, vae_decoder, tokenizer)

Extraction of QNN libs to `filesDir/runtime_libs/` is handled automatically at service startup.

## Key Code Patterns

### Chat Templates
- **Ministral/Mistral** (ONNX): Use `[INST] user message [/INST]` — must NOT include "user:" label or model sees "messageassisstant" misparsed
- **LFM/Granite** (ONNX): Use ChatML: `<|im_start|>user\nmessage<|im_end|>\n<|im_start|>assistant\n`
- **Nexa (GGUF)**: SDK's `applyChatTemplate()` handles automatically; see [NexaInferenceService.kt#L800+](app/src/main/java/com/llmhub/llmhub/inference/NexaInferenceService.kt#L800)

### Web Search Integration
`SearchIntentDetector` (in [WebSearchService.kt](app/src/main/java/com/llmhub/llmhub/websearch/WebSearchService.kt)) detects queries needing web context; `DuckDuckGoSearchService` fetches results via HTML parsing (handles multiple DOM formats). Results injected into prompt before inference. **Note**: Reasoning models (LFM-2.5 Thinking) buffer output to detect `<think>` tags for improved thinking token handling.

### Vision (Multimodal)
- **Nexa VLM**: Downscales images to 300×300, saves as JPEG (70% quality), paths passed via config; SDK handles encoding
- **Ministral-3 ONNX**: Custom vision encoder (`vision_encoder_q4.onnx`) + image token insertion; requires `config.json` for `text_config.image_token_index`

### GPU/NPU Acceleration
ONNX uses Android NNAPI (`OrtSession.SessionOptions.addNnapi()`):
- Try NNAPI-only first (FP16, CPU disabled) for max device acceleration
- Fall back to NNAPI+CPU if ops unsupported
- Ministral embedding (`embed_tokens_fp16.onnx`) loaded separately if decoder expects `inputs_embeds`

## Build & Development

### Prerequisites
- Android SDK 36 (target), min SDK 27; AGP 8.13.1; Kotlin 2.2.20
- For native image gen: asset pack `:qnn_pack` (built from `qnn_pack/build.gradle.kts`)
- Gradle wrapper: `./gradlew` (Linux/Mac) or `gradlew.bat` (Windows)

### Common Tasks
```bash
# Debug build
./gradlew assembleDebug
./gradlew installDebug

# Full app + asset packs
./gradlew bundleDebug

# Tests
./gradlew test

# Lint
./gradlew lint
```

### Model Download Workflow
- UI: [ModelDownloadScreen.kt](app/src/main/java/com/llmhub/llmhub/screens/ModelDownloadScreen.kt) handles model selection & HuggingFace token auth
- Service: [ModelDownloadService.kt](app/src/main/java/com/llmhub/llmhub/services/ModelDownloadService.kt) streams to `context.filesDir/models/<model_name>/`
- Additional files (e.g., ONNX `.data_00000` shards) listed in `additionalFiles` of [ModelData.kt](app/src/main/java/com/llmhub/llmhub/data/ModelData.kt); always download together

### Sensitive Config
- **HuggingFace Token**: Add to `local.properties` (not committed):
```properties
HF_TOKEN=hf_xxxxx
```
Read at build time as `BuildConfig.HF_TOKEN`

## Database & Persistence
[Room](gradle/libs.versions.toml) (v2.8.4) stores chat history, user settings, model metadata. DAOs in `app/src/main/java/com/llmhub/llmhub/data/`. Migrations auto-applied; model.isDownloaded boolean updated after successful downloads.

## Jetpack Compose UI
Material 3 (2024.09.00). Screens in `app/src/main/java/com/llmhub/llmhub/screens/`:
- [HomeScreen.kt](app/src/main/java/com/llmhub/llmhub/screens/HomeScreen.kt) — feature card grid
- [ChatScreen.kt](app/src/main/java/com/llmhub/llmhub/screens/ChatScreen.kt) — multi-turn with RAG & web search
- [ImageGeneratorScreen.kt](app/src/main/java/com/llmhub/llmhub/screens/ImageGeneratorScreen.kt) — prompt → image + swipeable variations gallery
- [FeatureScreens.kt](app/src/main/java/com/llmhub/llmhub/screens/FeatureScreens.kt) — writing aid, translator, transcriber, scam detector

ViewModels use `@HiltViewModel` + Hilt dependency injection.

## Important Gotchas
1. **ONNX Runtime conflicts**: Nexa SDK bundles its own `libonnxruntime.so`. Clean build + uninstall old APK to resolve.
2. **Ministral vision config**: Must parse `config.json` to extract image token index; vision encoder must exist before loading main model.
3. **16KB page alignment**: NDK set to `debugSymbolLevel = "FULL"` for Android 15+ Play Store compliance.
4. **R8 minification disabled**: Release builds disable R8 to preserve ONNX/Nexa JNI class definitions.
5. **Native libs asset pack**: QNN libraries auto-extracted; ensure `:qnn_pack` is built and included in app's asset pack declaration.

## File Organization Summary
```
app/src/main/
java/com/llmhub/llmhub/
screens/ — Compose UI screens
inference/ — UnifiedInferenceService + three backends
services/ — ModelDownloadService, SDBackendService, web search
data/ — LLMModel, ModelData, database DAOs
utils/ — FileUtils, device info helpers
res/ — strings (16 languages), drawables, layouts
assets/
cvtbase/ — SD CPU model files (clip, unet, vae_decoder, tokenizer)
qnnlibs/ — QNN libraries (auto-extracted at runtime)

qnn_pack/ — Asset pack for QNN native libs + SD base models
```

## Testing & Debugging
- **Logcat tags**: Search `OnnxInferenceService`, `NexaInferenceService`, `SDBackendService` for backend logs
- **Token usage**: Models report token counts in generation; check [ModelData.kt](app/src/main/java/com/llmhub/llmhub/data/ModelData.kt) for `contextWindowSize`
- **Crash after vision load**: Check vision encoder file exists + ONNX session init wasn't skipped
- **Image gen subprocess errors**: Monitor `127.0.0.1:8081` logs via `adb logcat | grep libstable_diffusion_core`
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@ app/release/app-release.aab
app/release/baselineProfiles/0/app-release.dm
app/release/app-release.apk
app/release/baselineProfiles/1/app-release.dm
app/src/main/assets/text-embed/embeddinggemma-300M_seq2048_mixed-precision.tflite
app/src/main/assets/text-embed/sentencepiece.model
text-embed/embeddinggemma-300M_seq2048_mixed-precision.tflite
text-embed/sentencepiece.model
NPU_BACKEND_RESEARCH.md
LLM-Hub
.env
.vscode/settings.json
40 changes: 40 additions & 0 deletions .idea/appInsightsSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 123 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/deviceManager.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/markdown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/studiobot.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading