Read Anthropic, Gemini, Groq and Mistral keys from the environment for self-hosted deployments

オープン
#114 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

enhancement

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 @NathanTarbert on 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_KEY is 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.

主要言語
TypeScript
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DeadantCo/answerLoopsdev のほかの issue

DeadantCo/answerLoopsdev の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。