Skip to content

feat(desktop): Implement local LLM setup - #803

Merged
haiphucnguyen merged 2 commits into
mainfrom
feature/add-local-ai-setup
Nov 4, 2026
Merged

haiphucnguyen merged 2 commits into
mainfrom
feature/add-local-ai-setup

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

⚠️ First-time contributor? This PR cannot be merged until you sign the CLA.
The CLA Assistant bot will post a comment below — reply to it with exactly:
I have read the CLA Document and I hereby sign the CLA
(Separate from this: all commits must also be signed off with git commit -s — see the Checklist.)

Summary

  • Enables local AI models and enhances the settings experience.
  • Updates core dependencies to reflect local LLM integration.
  • General UX improvements across onboarding and settings dialogs.
  • Improves error handling for local LLM binary setup. BREAKING CHANGE: The application now defaults to using the local Whisper/System STT/TTS providers, and the max_tool_calling_round_trips default has increased from 10 to 50.

Related Issue(s)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • I signed the CLA (first-time contributors — reply to the CLA Assistant bot comment)
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

…tion

- Enables local AI models and enhances the settings experience.
- Updates core dependencies to reflect local LLM integration.
- General UX improvements across onboarding and settings dialogs.
- Improves error handling for local LLM binary setup.
BREAKING CHANGE: The application now defaults to using the local Whisper/System STT/TTS providers, and the `max_tool_calling_round_trips` default has increased from 10 to 50.
Copilot AI lite review requested due to automatic review settings November 4, 2026 08:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active issues remain: a Japanese translation typo and a failed-download state that prevents retrying setup from the quick dialog.

2 open issues
What changed in this PR

This pull request adds a guided first-run setup flow for Askimo’s built-in local LLM, including hardware validation, engine/model downloads, Hugging Face recommendations, and automatic provider configuration.

Changes:

  • Added local LLM capability checks, binary/model setup, and starter model recommendations.
  • Added quick setup and provider-selection flows for local AI.
  • Updated onboarding, configuration defaults, shared dialog behavior, and localized strings.
File Description
shared-jvm/​src/​main/​kotlin/​io/​askimo/​core/​util/​HttpUtils.kt Adds redirect-aware HTTP HEAD content-length resolution.
shared-jvm/​src/​main/​kotlin/​io/​askimo/​core/​providers/​llama/​LlamaServerProcessManager.kt Simplifies Path usage for local model handling.
shared-jvm/​src/​main/​kotlin/​io/​askimo/​core/​providers/​llama/​LlamaCapabilityChecker.kt Adds RAM, CPU, and disk capability checks.
shared-jvm/​src/​main/​kotlin/​io/​askimo/​core/​providers/​llama/​HuggingFaceGgufBrowser.kt Adds ranked starter model discovery and size resolution.
shared-jvm/​src/​main/​kotlin/​io/​askimo/​core/​config/​AppConfig.kt Updates indexing, model, voice, and tool-calling defaults.
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​settings/​LocalLlmSettingsSection.kt Adds hardware gating and automatic local-provider setup.
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​settings/​LocalLlmQuickSetupDialog.kt Implements the guided local AI setup dialog.
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​Main.kt Adds local AI setup choices to the provider-required dialog.
desktop-shared/​src/​main/​resources/​i18n/​messages.properties Adds English local AI setup strings and removes obsolete strings.
desktop-shared/​src/​main/​resources/​i18n/​messages_zh_TW.properties Adds Traditional Chinese local AI setup strings.
desktop-shared/​src/​main/​resources/​i18n/​messages_zh_CN.properties Adds Simplified Chinese local AI setup strings.
desktop-shared/​src/​main/​resources/​i18n/​messages_vi_VN.properties Adds Vietnamese local AI setup strings.
desktop-shared/​src/​main/​resources/​i18n/​messages_pt_BR.properties Adds Brazilian Portuguese local AI setup strings.
desktop-shared/​src/​main/​resources/​i18n/​messages_ko_KR.properties Adds Korean local AI setup strings.
desktop-shared/​src/​main/​resources/​i18n/​messages_ja_JP.properties Adds Japanese local AI setup strings.
desktop-shared/​src/​main/​resources/​i18n/​messages_fr.properties Adds French local AI setup strings.
desktop-shared/​src/​main/​resources/​i18n/​messages_es.properties Adds Spanish local AI setup strings.
desktop-shared/​src/​main/​resources/​i18n/​messages_de.properties Adds German local AI setup strings.
desktop-shared/​src/​main/​kotlin/​io/​askimo/​ui/​onboarding/​OnboardingWizardDialog.kt Simplifies onboarding and updates feature-area defaults.
desktop-shared/​src/​main/​kotlin/​io/​askimo/​ui/​common/​theme/​AppComponents.kt Updates shared dialog dismissal behavior.
cli/​src/​test/​kotlin/​io/​askimo/​core/​config/​AppConfigTest.kt Updates the expected tool-calling round-trip default.

Review effort: Lite

@haiphucnguyen
haiphucnguyen merged commit 83e097e into main Nov 4, 2026
13 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/add-local-ai-setup branch November 4, 2026 18:48
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.

2 participants