[PR #13081] [MERGED] app/ui: refactor to use Ollama endpoints for user auth and health checks #76361

Closed
opened 2026-05-05 08:53:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13081
Author: @hoyyeva
Created: 11/13/2025
Status: Merged
Merged: 12/10/2025
Merged by: @hoyyeva

Base: mainHead: hoyyeva/app-ollama-apis


📝 Commits (7)

📊 Changes

9 files changed (+98 additions, -242 deletions)

View changed files

📝 app/cmd/app/app.go (+12 -5)
📝 app/ui/app/codegen/gotypes.gen.ts (+11 -13)
📝 app/ui/app/src/api.ts (+31 -24)
📝 app/ui/app/src/components/Settings.tsx (+2 -2)
📝 app/ui/app/src/hooks/useUser.ts (+12 -20)
📝 app/ui/app/src/lib/config.ts (+3 -0)
📝 app/ui/app/src/main.tsx (+3 -26)
📝 app/ui/responses/types.go (+8 -9)
📝 app/ui/ui.go (+16 -143)

📄 Description

This PR refactors the UI server to use existing Ollama API endpoints instead of maintaining duplicating custom endpoints.

Replaced custom endpoints with Ollama proxies

  • User authentication: GET /api/v1/mePOST /api/me (proxied to Ollama server)
  • Sign out: POST /api/v1/disconnectPOST /api/signout (proxied to Ollama server)
  • Connect URL: GET /api/v1/connect → removed (uses /api/me 401 response with signin_url)
  • Health check: GET /api/v1/healthGET /api/version (proxied to Ollama server)

Updated JSON field names to match Ollama API format (lowercase)
Added avatar URL transformation to absolute URLs when needed


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13081 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 11/13/2025 **Status:** ✅ Merged **Merged:** 12/10/2025 **Merged by:** [@hoyyeva](https://github.com/hoyyeva) **Base:** `main` ← **Head:** `hoyyeva/app-ollama-apis` --- ### 📝 Commits (7) - [`e38b172`](https://github.com/ollama/ollama/commit/e38b172962638d82879bd048fc5de8e3211d42d9) fix: replacing endpoints to use existing ollama api - [`50f07be`](https://github.com/ollama/ollama/commit/50f07be4e267c8ddc25f34cfb776659458ec56cb) clean up - [`637fb43`](https://github.com/ollama/ollama/commit/637fb431738ec9843a0805aab429b6a33064a745) clean up - [`1ca7b92`](https://github.com/ollama/ollama/commit/1ca7b920e20d1861e5d41927cfa36ef7d278fd3b) address comments - [`009b8f0`](https://github.com/ollama/ollama/commit/009b8f0a31c5909f88deb98ddb956a73e5c091c5) address comments - [`ec076ea`](https://github.com/ollama/ollama/commit/ec076eafb4b8e4248f43046ca09b888fdabf0a72) clean up - [`a1e04b3`](https://github.com/ollama/ollama/commit/a1e04b3696c056a740eb1dcbf02557d456d585ee) fix test ### 📊 Changes **9 files changed** (+98 additions, -242 deletions) <details> <summary>View changed files</summary> 📝 `app/cmd/app/app.go` (+12 -5) 📝 `app/ui/app/codegen/gotypes.gen.ts` (+11 -13) 📝 `app/ui/app/src/api.ts` (+31 -24) 📝 `app/ui/app/src/components/Settings.tsx` (+2 -2) 📝 `app/ui/app/src/hooks/useUser.ts` (+12 -20) 📝 `app/ui/app/src/lib/config.ts` (+3 -0) 📝 `app/ui/app/src/main.tsx` (+3 -26) 📝 `app/ui/responses/types.go` (+8 -9) 📝 `app/ui/ui.go` (+16 -143) </details> ### 📄 Description This PR refactors the UI server to use existing Ollama API endpoints instead of maintaining duplicating custom endpoints. Replaced custom endpoints with Ollama proxies - User authentication: `GET /api/v1/me` → `POST /api/me` (proxied to Ollama server) - Sign out: `POST /api/v1/disconnect` → `POST /api/signout` (proxied to Ollama server) - Connect URL: `GET /api/v1/connect` → removed (uses `/api/me` 401 response with `signin_url`) - Health check: `GET /api/v1/health` → `GET /api/version` (proxied to Ollama server) Updated JSON field names to match Ollama API format (lowercase) Added avatar URL transformation to absolute URLs when needed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 08:53:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#76361