mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 21:46:49 +00:00
66e574fcc0
The admin screen's model list (/api/tags) and pull (/api/pull) went out without the Authorization header that the extraction and /api/show already send, so an Ollama behind a Bearer proxy answered 401 and the list came back as a 502. The controller now adds the key saved with the local provider, read server side through LlmConfigResolver.readLocalServerAccess, and only when the requested base URL reaches the same server root as the saved one, so another address in the form never receives it. A 401 or 403 now says whether the key was rejected or none is saved for that address, and the admin form shows the server's reason instead of the axios status line. A server without /api/tags (LM Studio, vLLM) is asked for its OpenAI-compatible /v1/models instead, and the list body is read with a size cap and checked before use. Refs #2649
43 lines
1.9 KiB
JSON
43 lines
1.9 KiB
JSON
{
|
|
"counts": {
|
|
"src/nest/auth/auth-public.controller.ts": 1,
|
|
"src/nest/auth/auth.service.ts": 5,
|
|
"src/nest/auth/passkey.controller.ts": 1,
|
|
"src/nest/auth/passkey.service.ts": 2,
|
|
"src/nest/backup/backup-archive.ts": 8,
|
|
"src/nest/backup/backup.impl.ts": 1,
|
|
"src/nest/collab/collab.controller.ts": 7,
|
|
"src/nest/collab/collab.mcp.ts": 3,
|
|
"src/nest/collab/collab.rpc.ts": 2,
|
|
"src/nest/doc-sync/doc-sync-config.service.ts": 2,
|
|
"src/nest/llm-parse/llm-local.service.ts": 3,
|
|
"src/nest/maps/maps-url.resolver.ts": 2,
|
|
"src/nest/maps/providers/osm.client.ts": 4,
|
|
"src/nest/memories/immich.controller.ts": 6,
|
|
"src/nest/memories/immich.service.ts": 15,
|
|
"src/nest/memories/memories.mcp.ts": 6,
|
|
"src/nest/memories/synology.controller.ts": 1,
|
|
"src/nest/memories/synology.service.ts": 5,
|
|
"src/nest/memories/unified.controller.ts": 7,
|
|
"src/nest/notifications/push/push.controller.ts": 1,
|
|
"src/nest/oauth/oauth-api.controller.ts": 4,
|
|
"src/nest/oauth/oauth-public.controller.ts": 3,
|
|
"src/nest/oauth/oauth.service.ts": 22,
|
|
"src/nest/oidc/oidc.controller.ts": 4,
|
|
"src/nest/oidc/oidc.service.ts": 1,
|
|
"src/nest/photos/photos.controller.ts": 1,
|
|
"src/nest/place-import/place-import.service.ts": 1,
|
|
"src/nest/place-import/providers/google-directions.provider.ts": 5,
|
|
"src/nest/place-import/providers/google-list.provider.ts": 12,
|
|
"src/nest/place-import/providers/naver-list.provider.ts": 10,
|
|
"src/nest/plugins/contributions/plugin-pois.controller.ts": 1,
|
|
"src/nest/plugins/contributions/plugin-pois.mcp.ts": 1,
|
|
"src/nest/plugins/contributions/plugin-pois.service.ts": 4,
|
|
"src/nest/public-api/public-api-request.ts": 3,
|
|
"src/nest/reservations/reservations.mcp.ts": 4,
|
|
"src/nest/tokens/token.service.ts": 2,
|
|
"src/nest/vacay/vacay.controller.ts": 1,
|
|
"src/nest/vacay/vacay.mcp.ts": 1
|
|
}
|
|
}
|