Skip to content

feat(ollama): status do servidor local, modelos dinâmicos e guia de setup - #227

Merged
actus7 merged 1 commit into
mainfrom
feat/ollama-local-ux
Aug 17, 2026
Merged

feat(ollama): status do servidor local, modelos dinâmicos e guia de setup#227
actus7 merged 1 commit into
mainfrom
feat/ollama-local-ux

Conversation

@actus7

@actus7 actus7 commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Resumo

Resolve #180 — melhorar UX do suporte a modelos locais (Ollama).

Backend

  • Novo GET /ollama/api/status{ online, baseUrl, modelCount, version } (version de /api/version, tolerante a falha; timeout 5s).
  • Cache em memória de 15s para aguentar polling da UI; ?force=1 re-verifica.
  • fetchOllamaStatus() exportada para teste/reuso.

Setup UI

  • Card do Ollama na aba Local passa a ser vivo:
    • Indicador de status com dot pulsante: Online (com versão) / Offline / Verificando…, consultado ao montar + botão "Verificar novamente".
    • Quando online: chips com os modelos instalados (GET /ollama/api/models), com "+N outros" quando ultrapassa 12, e modelCount · baseUrl no subtítulo.
    • Guia de configuração rápida colapsável (5 passos: instalar → ollama serveollama pull llama3.2 → endereço padrão/OLLAMA_BASE_URL real → verificar). Aviso automático quando offline.

Testes

  • server/tests/ollama.test.ts: online (contagem+versão), offline e comportamento do cache de 15s.

Verificações

  • pnpm lint
  • pnpm typecheck
  • pnpm vitest run server/tests/ollama.test.ts (3/3) + suíte completa

Closes #180

…etup (#180)

- Novo endpoint GET /ollama/api/status (online, baseUrl, modelCount,
  version) com cache de 15s e parametro force para re-verificacao.
- Card do Ollama na aba Local do setup passa a ser vivo: indicador de
  status (online/offline/verificando), versao, chips com os modelos
  instalados e guia colapsavel de configuracao rapida.
- Testes unitarios cobrindo online, offline e cache de status.
Copilot AI lite review requested due to automatic review settings August 17, 2026 13:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
modelhub Ready Ready Preview Aug 17, 2026 1:13pm

@github-actions github-actions Bot added frontend Frontend changes backend Backend changes tests Test changes labels Aug 17, 2026
@actus7
actus7 merged commit 191789f into main Aug 17, 2026
12 checks passed
@actus7
actus7 deleted the feat/ollama-local-ux branch August 17, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend changes frontend Frontend changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: melhorar UX do suporte a modelos locais (Ollama)

2 participants