Read Anthropic, Gemini, Groq and Mistral keys from the environment for self-hosted deployments
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- ai, backend, documentation
Direção de pesquisa
Start by finding where the server reads OPENAI_API_KEY and how a workspace's saved key takes precedence, since the payload names no files. Extend the same fallback to ANTHROPIC_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY, GROQ_API_KEY and MISTRAL_API_KEY, and add environment selection of the default provider and model. Done when a workspace with no saved key uses the server key, saved keys still win, and the self-hosting docs no longer say this is coming soon.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Copied from DeadantCo/answerLoops#104 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/469 — originally opened by
@NathanTarberton 2026-10-25
What
A self-hosted deployment reads one AI provider key from the environment: OPENAI_API_KEY. Anthropic, Google Gemini, Groq, Mistral and xAI work, but only when each workspace saves its own key in Settings → AI Model after signing in. ANTHROPIC_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY, GROQ_API_KEY and MISTRAL_API_KEY are not read anywhere.
Why
Self-hosters who run on a different provider cannot configure it ahead of time. They need to deploy, sign in and click through Settings first, which blocks scripted or repeatable setups (infrastructure as code, preview environments, headless installs).
Scope
- Read a server-wide key for each supported chat provider from the environment, used by workspaces that have not saved their own, the same way
OPENAI_API_KEYis used today. - Allow choosing the default chat provider and model from the environment.
- Keep per-workspace keys taking priority over the server default.
- Update the self-hosting docs and the environment variable reference. They currently say this is coming soon.
Out of scope
Embeddings from Google Gemini and Mistral, which are tracked separately in #379 and #380.
Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.
- Linguagem predominante
- TypeScript
- Estrelas
- 0
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de DeadantCo/answerLoopsdev
-
Widget: match the chat bubble color to the rest of the widgetTalvez já em andamento @sethr07 assumiu hoje. Abertaenhancement frontend help wanted
Dificuldade 2/5 Meio dia Facilidade para iniciantes 75/100
DeadantCo/answerLoopsdev#68 · 3 comentários ·
-
Widget: make the chat window fit on small phonesTalvez já em andamento @sethr07 assumiu hoje. Abertaenhancement frontend good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
DeadantCo/answerLoopsdev#67 · 9 comentários ·
-
Add 'select all' option to Slack channel picker in SettingsTalvez já em andamento @sethr07 assumiu hoje. Abertafrontend good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
DeadantCo/answerLoopsdev#22 · 5 comentários ·
-
enhancement frontend help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
DeadantCo/answerLoopsdev#140 ·
Todas as issues de DeadantCo/answerLoopsdev
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
External sources always come back in English: `lc` isn't passed to `/api/v3/external_sources`Talvez já em andamento @Anurag1428 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
openfoodfacts/openfoodfacts-explorer#2264 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
cloudflare/workers-sdk#17139 ·
Mantenedores costumam responder em até 1 dia
-
area: editor P3 type: feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
halisonworks/mod-codeling#290 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
colinhacks/zod#6776 ·
Mantenedores costumam responder em até 1 dia