ollama/app
Bruce MacDonald 84a2cedf18
app: relay thinking false to server (#13319)
This fixes a bug where disabling thinking on deepseek-v3.1 did not stop the model from thinking.

When thinking is not defined it should not be sent to the server since this will cause error responses in some cases where the model does not support thinking. However if it is defined as false it should still be sent.
2025-12-03 15:06:55 -08:00
..
assets app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
auth app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
cmd app/cmd: update ollama help to navigate to ollama doc instead of github page (#13174) 2025-11-20 16:30:35 -05:00
darwin/Ollama.app/Contents app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
dialog app: fix macOS file picker to support Uniform Type Identifiers (#12965) 2025-11-05 21:37:17 -08:00
format app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
logrotate app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
server app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
store app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
tools app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
types/not app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
ui app: relay thinking false to server (#13319) 2025-12-03 15:06:55 -08:00
updater app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
version app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
webview app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
wintray app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
.gitignore app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
README.md app/docs: remove out of date storybook instructions (#13006) 2025-11-08 13:28:18 -08:00
ollama.iss app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
ollama.rc update installer and app.exe metadata 2024-02-15 05:56:45 +00:00

README.md

Ollama for macOS and Windows

Download

Development

Desktop App

go generate ./... &&
go run ./cmd/app

UI Development

Setup

Install required tools:

go install github.com/tkrajina/typescriptify-golang-structs/tscriptify@latest

Develop UI (Development Mode)

  1. Start the React development server (with hot-reload):
cd ui/app
npm install
npm run dev
  1. In a separate terminal, run the Ollama app with the -dev flag:
go generate ./... &&
OLLAMA_DEBUG=1 go run ./cmd/app -dev

The -dev flag enables:

Build

Windows

Dependencies - either build a local copy of ollama, or use a github release

# Local dependencies
.\scripts\deps_local.ps1

# Release dependencies
.\scripts\deps_release.ps1 0.6.8

Build

.\scripts\build_windows.ps1

macOS

CI builds with Xcode 14.1 for OS compatibility prior to v13. If you want to manually build v11+ support, you can download the older Xcode here, extract, then mv ./Xcode.app /Applications/Xcode_14.1.0.app then activate with:

export CGO_CFLAGS=-mmacosx-version-min=12.0
export CGO_CXXFLAGS=-mmacosx-version-min=12.0
export CGO_LDFLAGS=-mmacosx-version-min=12.0
export SDKROOT=/Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
export DEVELOPER_DIR=/Applications/Xcode_14.1.0.app/Contents/Developer

Dependencies - either build a local copy of Ollama, or use a GitHub release:

# Local dependencies
./scripts/deps_local.sh

# Release dependencies
./scripts/deps_release.sh 0.6.8

Build

./scripts/build_darwin.sh