feat(ollama): status do servidor local, modelos dinâmicos e guia de setup - #227
Merged
Conversation
…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.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
Resolve #180 — melhorar UX do suporte a modelos locais (Ollama).
Backend
GET /ollama/api/status→{ online, baseUrl, modelCount, version }(version de/api/version, tolerante a falha; timeout 5s).?force=1re-verifica.fetchOllamaStatus()exportada para teste/reuso.Setup UI
GET /ollama/api/models), com "+N outros" quando ultrapassa 12, emodelCount · baseUrlno subtítulo.ollama serve→ollama pull llama3.2→ endereço padrão/OLLAMA_BASE_URLreal → 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 lintpnpm typecheckpnpm vitest run server/tests/ollama.test.ts(3/3) + suíte completaCloses #180