Compare commits

...

165 Commits
0.0.2 ... main

Author SHA1 Message Date
JHubi1 3759d32049
Fix capability check for model details 2025-08-24 22:11:07 +02:00
JHubi1 fc754b1b20
Update bug.yaml 2025-08-18 17:10:14 +02:00
JHubi1 519fc27f26
Implementing "vision" capability
Closing #83
2025-08-06 13:55:27 +02:00
JHubi1 6e26718f36
Installer default option change 2025-04-11 22:32:32 +02:00
JHubi1 7be0d1adf0
Manual fix of windows build issue 2025-04-11 22:08:14 +02:00
JHubi1 40a2a27e20
Downgrade flutter_tts 2025-03-14 22:04:33 +01:00
JHubi1 4fe9fb9b69
Updated dependencies 2025-03-14 21:45:27 +01:00
JHubi1 13482b22f0
Update build.yaml 2025-03-14 21:31:50 +01:00
JHubi1 24015aa2ec
GH Actions updates 2025-03-14 21:25:25 +01:00
JHubi1 14a3bf22d2
Bug fix 2025-03-14 21:09:42 +01:00
JHubi1 861e6b5484
GH Actions updated flutter version 2025-03-14 20:36:06 +01:00
JHubi1 f2e784cfbf
GH Actions testing 2025-03-14 20:30:52 +01:00
JHubi1 c681b2f6d0
Make uninstall fully silent 2025-03-14 20:18:04 +01:00
JHubi1 7d1d749977
Various updates 2025-03-04 17:24:01 +01:00
JHubi1 ad719bc561
Merge pull request #80 from arrowsmith001/JHubi1/78-voice-scroll-text
Added scroll container to AI text on voice chat page
2025-03-02 17:23:03 +01:00
arrowsmith001 db8cb6ccb4 Added scroll container to AI text on voice chat page 2025-02-23 16:35:04 +00:00
JHubi1 ce09aec253
Updated GitHub actions 2024-12-13 23:47:06 +01:00
JHubi1 9a7d076a8e
Formatting 2024-12-13 22:12:59 +01:00
JHubi1 b0a8f42771
Added centralized network client 2024-12-13 22:07:21 +01:00
JHubi1 011e187e3a
Fixed localization key 2024-12-13 17:37:02 +01:00
JHubi1 c23d4c1acd
Modified message editing string 2024-10-19 10:11:32 +02:00
JHubi1 9a5e7ddb89
Url encode add model check url 2024-09-16 14:02:42 +02:00
JHubi1 d670072a69
Added desktop section to readme 2024-09-14 15:25:47 +02:00
JHubi1 065f92f144
Updated version 2024-09-14 14:42:59 +02:00
JHubi1 d2269f4431
Added Voice Mode asset 2024-09-14 14:30:15 +02:00
JHubi1 9050050e99
Added documentation images 2024-09-14 14:03:06 +02:00
JHubi1 1fdcfe9b80
Enable update checking by default 2024-09-14 12:56:11 +02:00
JHubi1 6824809d2a
Merged localization 2024-09-14 12:54:01 +02:00
JHubi1 dbe6dec4cc
Continuity fixes 2024-09-08 11:16:01 +02:00
JHubi1 e700df9724
Added changelog 2024-09-08 01:45:06 +02:00
JHubi1 36a3769da2
Removed debug print 2024-09-08 01:32:51 +02:00
JHubi1 04dfd70f24
Asset update 2024-09-08 01:20:26 +02:00
JHubi1 0629a8c0b5
Properly implemented toggle
Not hacky anymore 🎉
2024-09-08 00:36:34 +02:00
JHubi1 6c84f51267
Added brightness to keep alive popup 2024-09-07 23:20:41 +02:00
JHubi1 43d085ae8e
Fixed version not showing in info screen 2024-09-07 23:15:57 +02:00
JHubi1 b1c11ba21f
Updates for web 2024-09-03 21:44:03 +02:00
JHubi1 a816cf8f65
Check for update on app start, improved theme 2024-09-03 17:08:25 +02:00
JHubi1 b78ce302b5
Updated win installer 2024-08-28 17:20:35 +02:00
JHubi1 d1737ee330
Added linux architecture to name, added languages to installer 2024-08-28 08:56:02 +02:00
JHubi1 cfe9ce2bc9
Unified windows installer, added functionality 2024-08-27 23:34:22 +02:00
JHubi1 d7ce70cabb
Improved model add dialog 2024-08-25 18:04:48 +02:00
JHubi1 17c276301f
Fixed model add dialog 2024-08-24 21:17:09 +02:00
JHubi1 1d3a5e91d9
Added model adding 2024-08-24 02:23:53 +02:00
JHubi1 daff6a722f
Update advertisements 2024-08-23 22:59:44 +02:00
JHubi1 ada795db4c
Updated android project, changed activity name
Living dangerous today
2024-08-23 21:54:31 +02:00
JHubi1 20dbce2f34
Added timeout multiplicator 2024-08-23 18:26:46 +02:00
JHubi1 a9fed3e36d
Removed modal style 2024-08-22 23:07:27 +02:00
JHubi1 a69622250b
Removed assignee 2024-08-22 22:44:14 +02:00
JHubi1 13e266a3c9
Updated dark theme borders 2024-08-22 22:20:21 +02:00
JHubi1 8c122526ef
Fixed dropdown 2024-08-22 20:54:05 +02:00
JHubi1 282b22f123
Changed issue template to dropdown 2024-08-22 20:53:30 +02:00
JHubi1 ec92a0eb38
Updated theme change, no restart needed 2024-08-22 20:12:37 +02:00
JHubi1 e10062206d
Added beta badge 2024-08-22 00:18:23 +02:00
JHubi1 efcca113c8
Restrict desktop settings width, centralized delete dialog, allow changing titles and deleting non current chats 2024-08-21 00:58:13 +02:00
JHubi1 8813571b65
Overhauled title system 2024-08-20 21:39:15 +02:00
JHubi1 4d63da801c
Merge branch 'main' of https://github.com/JHubi1/ollama-app 2024-08-20 20:31:51 +02:00
JHubi1 930102ab40
Added sample chat history 2024-08-20 20:31:41 +02:00
JHubi1 e7a1d93196
Fixed title generation, added info message for imported chats 2024-08-20 20:23:57 +02:00
JHubi1 e8820162b0
Smaller fixes 2024-08-20 19:14:01 +02:00
JHubi1 68d2bc343f
Removed back to exit
Need feature in theory, but the implementation is lacking and will block the android app. I may revisit this in the future
2024-08-20 18:27:46 +02:00
JHubi1 732ad10b14
Fixed android version 2024-08-20 18:08:47 +02:00
JHubi1 cf92fbcabf
Added architecture to linux name 2024-08-20 17:56:20 +02:00
JHubi1 1f31d51e30
Added linux to build script, linux compatibility improvements 2024-08-20 17:54:46 +02:00
JHubi1 33f656997c
Disabled double back 2024-08-20 02:20:43 +02:00
JHubi1 354e82cacd
Added reference 2024-08-20 02:18:48 +02:00
JHubi1 c41fb53d9c
Added double pull to exit 2024-08-20 02:14:05 +02:00
JHubi1 5d68e9893d
Added predictive back gesture 2024-08-20 01:41:56 +02:00
JHubi1 96d7761f19
Correct unneeded space in translation file 2024-08-20 01:21:25 +02:00
JHubi1 9b6259a580
Added license page 2024-08-20 01:18:43 +02:00
JHubi1 27d45add60
Fixed html import 2024-08-20 00:51:03 +02:00
JHubi1 e57927524d
Centralized theme worker, simplified readme, unification on some spots, catches in voice mode, added tests 2024-08-20 00:23:05 +02:00
JHubi1 6a5a123026
Added (very!) experimental web support 2024-08-20 00:15:51 +02:00
JHubi1 4667f7a69b
Reenabled catch 2024-08-20 00:12:27 +02:00
JHubi1 7f67108b93
Added issue templates 2024-08-06 10:36:06 +02:00
JHubi1 1ecf5d28b8
Added languages to readme 2024-07-25 15:03:13 +02:00
JHubi1 2d659999d8
Merge branch 'main' of https://github.com/JHubi1/ollama-app 2024-07-23 16:26:01 +02:00
JHubi1 edcbf74295
desktop improvements, no error on empty responses, no redirect in host 2024-07-23 16:25:39 +02:00
JHubi1 279d3d0a1a
Added translations (it, tr)
Thanks to the following Crowdin users:
- mikropsoft - Turkish
- Intranox - Italian
2024-07-18 18:37:28 +02:00
JHubi1 fcb20e7931
Tried fixes for #26 2024-07-04 14:44:53 +02:00
JHubi1 0086ec63bc
Fixes described in #29 2024-07-03 17:56:54 +02:00
JHubi1 9f4e27758e
Fixed description of translation 2024-07-01 11:49:43 +02:00
JHubi1 fd1f39a6ea
Added untranslated messages file 2024-06-26 16:08:12 +02:00
JHubi1 34044e74bb
Improved desktop mode 2024-06-26 16:07:02 +02:00
JHubi1 4cc9e7d4c3
Fixed desktop switch thumb color 2024-06-26 14:10:16 +02:00
JHubi1 9654b1b96c
Added haptics to prompt dialog 2024-06-26 13:49:51 +02:00
JHubi1 0f380f69ef
Switched to stable version of ollama_dart 2024-06-26 13:46:11 +02:00
JHubi1 666aff0a2a
Fixed voice selector colors 2024-06-25 21:30:10 +02:00
JHubi1 feab8d65a8
Smaller fixes 2024-06-25 21:26:51 +02:00
JHubi1 d768294458
Voice Mode improvements 2024-06-25 21:08:59 +02:00
JHubi1 4d90f8611b
Added model preloading 2024-06-25 20:14:25 +02:00
JHubi1 df4879fe6e
Improvements 2024-06-21 22:13:59 +02:00
JHubi1 07afba3a29
Tweaked colors 2024-06-21 20:33:33 +02:00
JHubi1 443acf8a81
Restrict width of chat view on desktop 2024-06-21 20:23:55 +02:00
JHubi1 36eaf42d1d
Added tooltips 2024-06-21 20:03:42 +02:00
JHubi1 6896ce5597
Added Chinese translation
Thanks to Crowdin user `Ruifen`
2024-06-21 19:53:43 +02:00
JHubi1 7422d235d1
Updated desktop structure, experimental linux build 2024-06-19 22:05:11 +02:00
JHubi1 c780564129
Important fix (voice breaks app) 2024-06-18 18:49:10 +02:00
JHubi1 bd71f99a55
Show headers as empty if default 2024-06-18 17:53:12 +02:00
JHubi1 a1ce8686f0
Improvements 2024-06-18 17:42:17 +02:00
JHubi1 71e71d3e96
Disabled debug 2024-06-18 17:20:12 +02:00
JHubi1 5db1288228
Enabled changelog overflow 2024-06-18 17:18:34 +02:00
JHubi1 0401145987
Maybe fixed updates this time 2024-06-18 17:11:57 +02:00
JHubi1 09fda2b004
Only allow voice if enabled 2024-06-18 17:02:18 +02:00
JHubi1 1b9225fdb8
Updated readme 2024-06-18 16:47:48 +02:00
JHubi1 3d7867abe3
Added recommended extensions 2024-06-18 14:17:14 +02:00
JHubi1 04ff29277d
Added inactivity action 2024-06-18 14:08:59 +02:00
JHubi1 8f00cb8989
Action fixes 2024-06-18 13:55:13 +02:00
JHubi1 00b0705038
Added GitHub Action 2024-06-18 13:49:17 +02:00
JHubi1 92290d6428
Updated version number 2024-06-13 21:00:24 +02:00
JHubi1 539db78749
Bug fixes 2024-06-13 21:00:06 +02:00
JHubi1 6697346628
Added material you 2024-06-13 20:51:22 +02:00
JHubi1 baf654be40
Critical chat fix, added voice mode 2024-06-13 19:17:02 +02:00
JHubi1 93818cfbad
Made tips more random 2024-06-09 12:57:55 +02:00
JHubi1 9fb9904bdb
New chat on different model selected 2024-06-09 12:54:48 +02:00
JHubi1 ebba5b82e6
Allow creation of new chat while no model selected 2024-06-09 12:53:04 +02:00
JHubi1 16eed64c83
Updated version 2024-06-08 22:51:43 +02:00
JHubi1 fa3fb953e2
Fixed version display in settings not updating 2024-06-08 22:51:22 +02:00
JHubi1 f5a32a014a
Changed menu order 2024-06-08 22:41:48 +02:00
JHubi1 5520987684
Fixed title generator, fixed updater (hopefully) 2024-06-08 22:38:56 +02:00
JHubi1 da95e2d106
Greyed tag of model in model selector 2024-06-08 22:12:44 +02:00
JHubi1 0b04e89cc9
Added keep_alive 2024-06-08 22:00:17 +02:00
JHubi1 fdea5bab05
Changed spacing 2024-06-08 20:10:23 +02:00
JHubi1 60601edce8
Fixed visual scrolling bug 2024-06-08 20:07:11 +02:00
JHubi1 edd92955e9
Updated translation 2024-06-08 19:02:04 +02:00
JHubi1 db6feba198
Added structure, updated settings 2024-06-08 18:58:06 +02:00
JHubi1 ec55ccde3e
Resorted settings, toggle's text can change value 2024-06-08 18:13:31 +02:00
JHubi1 2e1f8c1935
Added version number in settings 2024-06-08 17:50:20 +02:00
JHubi1 42fa6b065a
Updated build script beta 2024-06-08 17:45:00 +02:00
JHubi1 a34e7286ee
Grouped settings UI 2024-06-08 17:39:28 +02:00
JHubi1 3663fdfcc1
Fixed icons 2024-06-08 15:59:08 +02:00
JHubi1 84a40adb1f
Polished installer 2024-06-06 19:17:27 +02:00
JHubi1 86f6e2e14c
Added experimental new build script 2024-06-06 18:03:27 +02:00
JHubi1 e9e7e8105b
Updated version 2024-06-05 21:00:45 +02:00
JHubi1 1471cd25eb
Extracted update functions into external file 2024-06-05 20:52:05 +02:00
JHubi1 a96550863d
Added changelog dialog 2024-06-05 20:42:37 +02:00
JHubi1 00db49f3e8
Added host check on submit 2024-06-05 20:08:08 +02:00
JHubi1 924a3613f9
Fixed update logic 2024-06-05 20:04:26 +02:00
JHubi1 f35736378c
Fixed changelog naming 2024-06-05 18:29:05 +02:00
JHubi1 0a996e6ed2
Added update checker, updated desktop view 2024-06-05 18:25:29 +02:00
JHubi1 08d566e855
Updated image 2024-06-05 14:27:09 +02:00
JHubi1 755dd2301e
Added IzzyOnDroid download 2024-06-05 14:20:42 +02:00
JHubi1 a3d60b5ce8
Fixed #11 2024-06-05 14:02:33 +02:00
JHubi1 0d508ff5e7
Fixed version (sorry) 2024-06-03 17:06:56 +02:00
JHubi1 ee4b5b01c9
Updated translation 2024-06-03 17:04:13 +02:00
JHubi1 f4def6e97c
Clear send button on send 2024-06-03 16:59:07 +02:00
JHubi1 cb5d7593ef
Updated version number 2024-06-03 16:53:36 +02:00
JHubi1 9f019fa832
Updated send icon 2024-06-03 16:51:06 +02:00
JHubi1 cafc161aac
Fixed send button, now throw exception is message empty 2024-06-03 16:46:58 +02:00
JHubi1 7f26da7954
Added edit message to must have content 2024-06-03 16:22:45 +02:00
JHubi1 5a98f3eb7a
Set tips to not update every build call 2024-06-03 16:03:33 +02:00
JHubi1 545525ab55
Added toggle to show model tags 2024-06-03 15:54:30 +02:00
JHubi1 2735357852
Fixed not being able to select model 2024-06-03 15:42:39 +02:00
JHubi1 279f35f89b
Tweaked default desktop window size 2024-06-02 17:11:35 +02:00
JHubi1 8b8295805f
Experimental desktop support 2024-06-02 14:51:48 +02:00
JHubi1 367e5e2a88
Removed version code 2024-06-01 18:49:58 +02:00
JHubi1 4b062e444f
Fixed version code 2024-06-01 18:26:59 +02:00
JHubi1 3b3bc9a16d
Updated version, fixed translation
Updated version
2024-06-01 16:10:14 +02:00
JHubi1 94820a300e
Added custom header option 2024-06-01 15:46:08 +02:00
JHubi1 8eb3dfb35e
Added export function 2024-05-31 23:57:46 +02:00
JHubi1 7cee1da98b
Fixed multimodal
Were broking after changing chat
2024-05-31 22:29:03 +02:00
JHubi1 b8967c6653
Fixed image size 2024-05-31 21:19:27 +02:00
JHubi1 059c97e85f
Made keyboard flatter 2024-05-31 20:16:09 +02:00
JHubi1 5429988cc7
Fixed dark mode markup 2024-05-31 17:39:28 +02:00
JHubi1 fa253b5480
Major update
- Added settings
- Added welcome dialog
- Added custom system message (kinda #4)
- Added markdown in messages
- Added streamed responses
- Completely reworked UI concept
- Multi chat support
- Added conversation titles
- Fixed #3 (visually the same)
2024-05-31 16:45:51 +02:00
JHubi1 f9ff88f749
Added license (Apache License 2.0) 2024-05-30 12:24:10 +02:00
195 changed files with 14690 additions and 1338 deletions

60
.github/ISSUE_TEMPLATE/bug.yaml vendored Normal file
View File

@ -0,0 +1,60 @@
name: Bug Report
description: Report a bug in the app.
labels: ["bug"]
body:
- type: checkboxes
attributes:
label: "Requirements"
description: "Please check all the following requirements before submitting a bug report."
options:
- label: I have searched the issues of this repository and believe that this is not a duplicate
required: true
- label: I have confirmed this bug exists on the latest version of the app
required: true
- id: platforms
type: dropdown
attributes:
label: "Platforms"
description: "The platforms on which the bug occurs or had occurred. Select all that apply."
multiple: true
options:
- Android
- Windows
- Linux
- Web
validations:
required: true
- id: description
type: input
attributes:
label: "Description"
description: "A short description of what the bug is."
placeholder: "I was trying to do X, but Y happened instead."
validations:
required: true
- type: textarea
attributes:
label: "Steps to reproduce"
description: "Detailed steps for reproducing the issue."
placeholder: "1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error"
validations:
required: true
- type: textarea
attributes:
label: "Expected behavior"
description: "A clear and concise description of what you expected to happen."
placeholder: "I expected to see..."
validations:
required: true
- type: textarea
attributes:
label: "Actual behavior"
description: "A clear and concise description of what actually happened."
placeholder: "Instead, I saw..."
validations:
required: true
- id: context
type: textarea
attributes:
label: "Screenshots or additional context"
description: "If applicable, add screenshots to help explain your problem."

8
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Contact Author
url: https://jhubi1.com/mailto
about: Report security concerns or ask general questions.
- name: Translations
url: https://crowdin.com/project/ollama-app
about: Help translate the app into your language.

31
.github/ISSUE_TEMPLATE/feature.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Feature Request
description: Suggest a new feature or improvement for the app.
labels: ["enhancement"]
body:
- type: checkboxes
attributes:
label: "Requirements"
description: "Please check all the following requirements before submitting a feature request."
options:
- label: I have searched the issues of this repository and believe that this is not a duplicate
required: true
- label: I can confirm this feature request is not already implemented in the app
required: true
- type: textarea
attributes:
label: "Description"
description: "A description of the feature you are proposing."
placeholder: "I would like to see..."
validations:
required: true
- type: textarea
attributes:
label: "Possible solution"
description: "Suggestions on how to implement the feature."
placeholder: "It would be great if..."
validations:
required: true
- type: textarea
attributes:
label: "Additional context"
description: "Add any other context, screenshots or possible concepts about the feature request here."

155
.github/workflows/build.yaml vendored Normal file
View File

@ -0,0 +1,155 @@
name: Build app
on:
workflow_dispatch:
inputs:
obfuscate:
description: Obfuscate
default: false
type: boolean
buildAndroid:
description: Build for Android
required: true
default: true
type: boolean
buildWindowsX64:
description: Build for Windows x64
required: true
default: false
type: boolean
buildLinuxX64:
description: Build for Linux x64
required: true
default: false
type: boolean
jobs:
analyze:
name: Linting
runs-on: ubuntu-latest
outputs:
result: ${{ steps.version.outputs.result }}
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2.18.0
with:
channel: stable
flutter-version-file: pubspec.yaml
cache: true
- name: Get flutter version
id: version
uses: mikefarah/yq@master
with:
cmd: yq -r '.version' 'pubspec.yaml' | awk -F'+' '{print $1}'
- name: Disabling flutter analytics
run: flutter config --no-analytics
- name: Analyzing project code
run: flutter analyze --no-fatal-infos
build-android:
name: Building for Android
if: ${{ github.event.inputs.buildAndroid == 'true' }}
runs-on: ubuntu-latest
needs: analyze
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2.18.0
with:
channel: stable
flutter-version-file: pubspec.yaml
cache: true
- uses: actions/setup-java@v4
with:
distribution: "adopt"
java-version: "17"
- name: Copy keystore file
run: |
echo $'storePassword=${{ secrets.ANDROID_KEYSTORE_PASSPHRASE }}\nkeyPassword=${{ secrets.ANDROID_KEYSTORE_PASSPHRASE }}\nkeyAlias=upload\nstoreFile=upload-keystore.jks\n' > ./android/key.properties
echo "${{ secrets.ANDROID_KEYSTORE }}" > ./android/app/upload-keystore.jks.asc
gpg -d --passphrase "${{ secrets.ANDROID_KEYSTORE_PASSPHRASE }}" --batch ./android/app/upload-keystore.jks.asc > ./android/app/upload-keystore.jks
- name: Disabling flutter analytics
run: flutter config --no-analytics
- name: Running build
id: compile
run: flutter build apk --split-debug-info=build/debugAndroid ${{ github.event.inputs.obfuscate == 'true' && '--obfuscate' || '' }}
- name: Preparing files
run: |
cp build/app/outputs/flutter-apk/app-release.apk build/app/outputs/flutter-apk/ollama-android-v${{ needs.analyze.outputs.result }}.apk
- name: Uploading APK
uses: actions/upload-artifact@v4
with:
name: ollama-android
path: |
build/app/outputs/flutter-apk/ollama-android-v${{ needs.analyze.outputs.result }}.apk
build-windows-x64:
name: Building for Windows x64
if: ${{ github.event.inputs.buildWindowsX64 == 'true' }}
runs-on: windows-latest
needs: analyze
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2.18.0
with:
channel: stable
flutter-version-file: pubspec.yaml
cache: true
- name: Disabling flutter analytics
run: flutter config --no-analytics
- name: Running build
id: compile
run: flutter build windows --split-debug-info=build\debugWindows ${{ github.event.inputs.obfuscate == 'true' && '--obfuscate' || '' }}
- name: Running installer build
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
with:
path: .\windows_installer\ollama.iss
options: /O+ /dAppVersion=${{ needs.analyze.outputs.result }}
- name: Uploading installer
uses: actions/upload-artifact@v4
with:
name: ollama-windows-x64
path: build\windows\x64\runner\ollama-windows-x64-v${{ needs.analyze.outputs.result }}.exe
build-linux-x64:
name: Building for Linux x64
if: ${{ github.event.inputs.buildLinuxX64 == 'true' }}
runs-on: ubuntu-latest
needs: analyze
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2.18.0
with:
channel: stable
flutter-version-file: pubspec.yaml
cache: true
- name: Disabling flutter analytics
run: flutter config --no-analytics
- name: Installing linux dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
- name: Running build
id: compile
run: flutter build linux --split-debug-info=build/debugLinux ${{ github.event.inputs.obfuscate == 'true' && '--obfuscate' || '' }}
- name: Creating archive
run: |
cd build/linux/x64/release/bundle
tar -czf ollama-linux-x64-v${{ needs.analyze.outputs.result }}.tar.gz *
- name: Uploading archive
uses: actions/upload-artifact@v4
with:
name: ollama-linux-x64
path: build/linux/x64/release/bundle/ollama-linux-x64-v${{ needs.analyze.outputs.result }}.tar.gz
bundle:
name: Creating bundle
runs-on: ubuntu-latest
if: ${{ always() }}
needs: [build-android, build-windows-x64, build-linux-x64]
steps:
- name: Adding builds
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Generating timestamp
run: echo "timestamp=$EPOCHSECONDS"$'\n\norigin=${{ github.repository }}\nhost=${{ github.server_url }}\nowner=${{ github.repository_owner }}\n\nworkflow=${{ github.workflow }}\nrun_id=${{ github.run_id }}\nrun_number=${{ github.run_number }}' > manifest.yaml
- name: Bundling files
uses: actions/upload-artifact@v4
with:
name: ollama
path: ./

View File

@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.
version:
revision: "54e66469a933b60ddf175f858f82eaeb97e48c8d"
revision: "35c388afb57ef061d06a39b537336c87e0e3d1b1"
channel: "stable"
project_type: app
@ -13,11 +13,11 @@ project_type: app
migration:
platforms:
- platform: root
create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
- platform: android
create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
- platform: windows
create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
# User provided section

7
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"recommendations": [
"dart-code.dart-code",
"dart-code.flutter",
"github.vscode-github-actions"
]
}

201
LICENSE Normal file
View File

@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2024 JHubi1
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

115
README.md
View File

@ -2,111 +2,74 @@
A modern and easy-to-use client for Ollama. Have the greatest experience while keeping everything private and in your local network.
| ![](assets/screenshots/img1_framed.png) | ![](assets/screenshots/img2_framed.png) | ![](assets/screenshots/img3_framed.png) | ![](assets/screenshots/img4_framed.png) |
| ![banner 1: home screen](assets/screenshots/flutter_24.png) | ![banner 2: model selector](assets/screenshots/flutter_15.png) | ![banner 3: sample message](assets/screenshots/flutter_18.png) | ![banner 4: opened sidebar](assets/screenshots/flutter_26.png) |
|-|-|-|-|
> Important: This app does not host a Ollama server on device, but rather connects to one and uses its api endpoint.
> Don't know what Ollama is? Learn more at [ollama.com](https://ollama.com/).
> [!IMPORTANT]
> This app does not host a Ollama server on device, but rather connects to one using its api endpoint.
> You don't know what Ollama is? Learn more at [ollama.com](https://ollama.com).
- [Ollama App](#ollama-app)
- [Installation](#installation)
- [Initial Setup](#initial-setup)
- [Side Menu](#side-menu)
- [Model Selector](#model-selector)
- [Multimodal Model Input](#multimodal-model-input)
- [Multilingual Interface](#multilingual-interface)
- [Custom Builds](#custom-builds)
- [Actually Building](#actually-building)
## Getting Started
## Installation
Ollama App has a pretty simple and intuitive interface to be as open as possible. Everything just works out of the box, you just have to follow the next steps.
You'll find the latest recommended version of the Ollama App under [the releases tab](https://github.com/JHubi1/ollama-app/releases). Download the APK and install it on your Android device. That's it, now proceed to [Initial Setup](#initial-setup).
### Installation
## Initial Setup
You'll find the latest recommended version of the Ollama App under the [releases tab](https://github.com/JHubi1/ollama-app/releases). Download the correct executable onto your device and install it. If you want to install on a desktop platform, you might also have to follow the steps listed below, under [Ollama App for Desktop](#ollama-app-for-desktop).
After installing the app and opening it for the first time, you'll encounter this popup:
Alternatively, you can also download the app from any of the following stores:
![set host dialog](assets/screenshots/other/s01.png)
[<img src="assets/stores/IzzyOnDroid.png" width="215" />](https://apt.izzysoft.de/fdroid/index/apk/com.freakurl.apps.ollama/)
<!-- [<img src="assets/stores/FDroid.png" width="215" />](/com.freakurl.apps.ollama/) -->
In this dialog, you have to enter the base URL of your instance. The port is required, except for the port number matching the protocol (443 for HTTPS or 80 for HTTP).
That's it, you've successfully installed Ollama App! Now just proceed to [Initial Setup](https://github.com/JHubi1/ollama-app/wiki/Getting-Started#initial-setup) or alternatively [Setup](#setup) below.
This address will be checked, so no worry about entering the wrong one. The disadvantage of this is that your server has to be running even if you don't want to chat with it at that moment. The checkup only happens on initial setup for now. If you move your server or the server goes down and you try to send a message to it, there is a chance of the app crashing. Don't worry, just go into the side menu and click the settings button to change it.
### Ollama App for Desktop
That's it, you can now just chat. Enter a message into the box at the bottom and click the send icon.
> [!WARNING]
> This is still an experimental feature! Some functions may not work as intended. If you come across any errors, please create a new [issue report](https://github.com/JHubi1/ollama-app/issues/new/choose).
## Side Menu
There are a few things you might have to keep in mind if you're planning to use the experimental desktop support.
The button on the top left opens the menu. In it, you have three options: `New Chat`, `Ask before Deletion` and `Set Host`. The first option clears the chat (-> creates a new one), the second one opens a new dialog that has a toggle you can toggle if you don't want to be asked or want to be asked again before deleting a chat, and the third option reopens the host dialog from the initial start of the app to adapt to changing hosts.
#### Windows
![side menu](assets/screenshots/other/s02.png)
The Windows version is provided in the form of an installer, you can find it attached on the [latest release](https://github.com/JHubi1/ollama-app/releases). It's not signed, you might have to dismiss the Windows Defender screen by pressing "View More" > "Run Anyway".
Note: The same effect as the `New Chat` option has the button on the top right of the main screen.
Windows app data is kept at: `C:\Users\[user]\AppData\Roaming\JHubi1\Ollama App`
#### Linux
## Model Selector
The Linux version is provided in the form of a portable executable, you can find it attached on the [latest release](https://github.com/JHubi1/ollama-app/releases). To start it, execute `./ollama` in the extracted folder.
You can access the model selector by tapping on the `<selector>` text in the top middle or the name of the currently selected model in the same spot. Then you'll get the following bottom sheet:
If a message like `error while loading shared libraries: libgtk-3.so.0: cannot open shared object file` appears when you start the app, run the following commands:
![model selector](assets/screenshots/other/s03.png)
- `sudo apt-get update`
- `sudo apt-get upgrade`
- `sudo apt-get install packagekit-gtk3-module`
This will display all the models currently installed in your Ollama server instance.
Linux app data is kept at: `/home/[user]/.local/share/ollama`
Models with an image-like icon next to them allow multimodal input. The one shown in the image, `llava`, supports exactly that.
### Setup
The models with a star next to them are recommended models. They have been selected by me (hehe) to be listed as that. Read more under [Custom Builds](#custom-builds).
The most difficult part is setting up the host. To learn more visit the [wiki guide on how to do so](https://github.com/JHubi1/ollama-app/wiki/Getting-Started#setting-up-the-host). After setting up, you normally don't have to enter it again.
The `Add Model` button does nothing at the moment, it just opens a dialog that lists steps on how to add a model to an instance. For safety reasons, I didn't add the ability to add a model directly via name in the app.
And you're done! Just start chatting with your local AI and have fun!
## Multimodal Model Input
> [!TIP]
> The new Voice Mode is now avaliable as an experimental feature. Learn more about it in [the documentation](https://github.com/JHubi1/ollama-app/wiki/Components#voice).
Ollama App supports multimodal models, models with support input via an image.
## Documentation
After selecting one in the model selector, a new icon appears at the bottom left of the message bar; a camera icon. Clicking on it reveals the following bottom sheet:
The documentation for components, settings, functions, etc. has moved to the [Wiki Page](https://github.com/JHubi1/ollama-app/wiki) of this repository. The steps there will be updated with future versions. Still having questions? Feel free to open an issue.
![attachment dialog](assets/screenshots/other/s04.png)
## Translations and Contribution
Select one of them, take your photo and it'll get added to the chat. You can also add multiple.
You want to help me make this project even better? Great, help is always appresheated.
Even though the images will appear in the chat already after sending, they won't be submitted to the AI until a new text message is sent.
Ollama App is created using [Flutter](https://flutter.dev), a modern and robust frontend framework designed to make a single codebase run on multiple target platforms. The framework itself is based on the [Dart](https://dart.dev) programming language.
## Multilingual Interface
Read more in the [Contribution Guide](https://github.com/JHubi1/ollama-app/wiki/Contributing).
I integrated support for multiple languages into the Ollama App. Currently available are:
## Star History
- English
- German
Your language isn't one of them? Reach out to me and I'll give you access to my Crowdin project.
## Custom Builds
Now comes the interesting part. I built this app in a way you can easily create custom builds. Currently, there are these values that can be customized:
```
// use host or not, if false dialog is shown
const useHost = false;
// host of ollama, must be accessible from the client, without trailing slash
const fixedHost = "http://example.com:1144";
// use model or not, if false selector is shown
const useModel = false;
// model name as string, must be valid ollama model!
const fixedModel = "gemma";
// recommended models, shown with as star in model selector
const recommendedModels = ["gemma", "llama3"];
```
They can be found at the top of `lib/main.dart`. `useHost` and `useModel` decide whether you want `fixedHost` and `fixedModel` to control anything. `fixedHost` and `fixedModel` decide about the value that has to be used. That can be practical in case you try to create an app specific to your instance.
The last one, `recommendedModels`, is a list of models that will be listed as recommended in the [Model Selector](#model-selector). They are more like personal preferences. If empty, no model will be preferred.
### Actually Building
But how do you create a custom build?
First, follow [the Flutter installation guide](https://docs.flutter.dev/get-started/install) by selecting Android as the first app type. Then follow [these steps](https://docs.flutter.dev/deployment/android#signing-the-app) till you have your custom `key.properties`. Place it into the `android` folder at the root of the project.
If you're running on Windows, just double-click on `scripts/build.bat` and wait till the process is done. Don't worry, there'll be a lot of Kotlin errors in the terminal. You can safely ignore them, the build will be fine.
If you're not running Windows, open the file `scripts/build.bat` in a text editor and copy the command starting with `flutter` after the `call` command in a terminal window. Again, don't worry about the Kotlin errors.
In both cases, you'll now find your APK in `build/app/outputs/apk/release/app-release.apk` (don't blame me for that, it's a flutter thing).
![Star History Chart](https://api.star-history.com/svg?repos=JHubi1/ollama-app&type=Timeline)

3
android/.gitignore vendored
View File

@ -5,9 +5,10 @@ gradle-wrapper.jar
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
.cxx/
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks

View File

@ -1,80 +0,0 @@
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
namespace "com.example.ollama"
compileSdk flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
applicationId "com.freakurl.apps.ollama"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.release
}
}
}
flutter {
source '../..'
}
dependencies {}

View File

@ -0,0 +1,59 @@
import java.util.Properties
import java.io.FileInputStream
plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
val keystoreProperties = Properties()
val keystorePropertiesFile = rootProject.file("key.properties")
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
}
android {
namespace = "com.freakurl.apps.ollama"
compileSdk = flutter.compileSdkVersion
ndkVersion = "27.0.12077973" // flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
defaultConfig {
applicationId = "com.freakurl.apps.ollama"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
signingConfigs {
create("release") {
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["keyPassword"] as String
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
storePassword = keystoreProperties["storePassword"] as String
}
}
buildTypes {
release {
signingConfig = signingConfigs.getByName("release")
}
}
}
flutter {
source = "../.."
}

View File

@ -2,11 +2,13 @@
<application
android:label="Ollama"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/ic_launcher"
android:enableOnBackInvokedCallback="true">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
@ -31,7 +33,7 @@
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility?hl=en and
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
@ -40,6 +42,30 @@
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
<!-- check if url is valid -->
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="http"/>
</intent>
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="https"/>
</intent>
<!-- check if url is valid end -->
<!-- voice mode -->
<intent>
<action android:name="android.speech.RecognitionService"/>
</intent>
<intent>
<action android:name="android.intent.action.TTS_SERVICE"/>
</intent>
<!-- voice mode end-->
</queries>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.INTERNET" />
<!-- voice mode -->
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/>
<!-- voice mode end -->
</manifest>

View File

@ -1,5 +0,0 @@
package com.example.ollama
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()

View File

@ -0,0 +1,5 @@
package com.freakurl.apps.ollama
import io.flutter.embedding.android.FlutterActivity
class MainActivity : FlutterActivity()

View File

@ -1,18 +0,0 @@
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}

21
android/build.gradle.kts Normal file
View File

@ -0,0 +1,21 @@
allprojects {
repositories {
google()
mavenCentral()
}
}
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
rootProject.layout.buildDirectory.value(newBuildDir)
subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
project.evaluationDependsOn(":app")
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}

View File

@ -1,3 +1,3 @@
org.gradle.jvmargs=-Xmx4G
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true

View File

@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip

View File

@ -1,26 +0,0 @@
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}
settings.ext.flutterSdkPath = flutterSdkPath()
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
}
include ":app"

View File

@ -0,0 +1,25 @@
pluginManagement {
val flutterSdkPath = run {
val properties = java.util.Properties()
file("local.properties").inputStream().use { properties.load(it) }
val flutterSdkPath = properties.getProperty("flutter.sdk")
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
flutterSdkPath
}
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.7.0" apply false
id("org.jetbrains.kotlin.android") version "1.8.22" apply false
}
include(":app")

Binary file not shown.

BIN
assets/OllamaAppBanner.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
assets/OllamaAppBanner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
assets/OllamaWelcome.zip Normal file

Binary file not shown.

Binary file not shown.

BIN
assets/app_icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

1
assets/chatsample.json Normal file

File diff suppressed because one or more lines are too long

BIN
assets/logo512error.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

BIN
assets/stores/FDroid.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
assets/welcome/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
assets/welcome/1dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
assets/welcome/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

BIN
assets/welcome/2dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

BIN
assets/welcome/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
assets/welcome/3dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

3
devtools_options.yaml Normal file
View File

@ -0,0 +1,3 @@
description: This file stores settings for Dart & Flutter DevTools.
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
extensions:

View File

@ -1 +0,0 @@
Erstveröffentlichung

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

View File

@ -0,0 +1,5 @@
- Added toggle to enable tags in model selector
- Fixed tips being buggy
- Edited messages now have to have a content
- The send button isn't shown constantly anymore
- The send button has a new design

View File

@ -0,0 +1,4 @@
- Fixed framerate issues on some devices
- Added update dialog
- Extended sidebar drag space
- Added updater

View File

@ -0,0 +1,12 @@
- Added translation: Chinese, Italian, Turkish
- Ability to download models
- Fixed title generation
- Added timeout multiplier
- Theme / brightness change doesn't require restart
- Preloading models enabled by default
- Support android predictive back
- Improved Voice Mode
- Improved update mechanism
- Ability to use Modelfiles (on host)
- Unified theme usage
- Smaller bug fixes and improvements

Some files were not shown because too many files have changed in this diff Show More