Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: support configurable auth header name for custom AI endpoints (e.g. x-api-key)

Aperta
#3,453 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
go

Direzione di ricerca

Start by locating the waveai.json mode-config parsing and the code that builds authentication headers for non-Azure AI providers. Verify the custom ai:apikeyheader setting is optional, replaces the Authorization header format when present, and leaves Azure providers unchanged; check existing authentication coverage if available.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Feature description

Custom enterprise gateways (e.g. Apigee-fronted proxies) require x-api-key: <token> rather than Authorization: Bearer <token>. Wave currently hardcodes the latter for all non-Azure providers, making such gateways unusable.

Implementation Suggestion

Add an optional ai:apikeyheader field in waveai.json mode config that, when set, overrides the header name used to send the API token. When the custom header is set, send \<header\>: <token> instead of Authorization: Bearer <token>. Azure providers (which use api-key) are unaffected.

Example config:

{
  "my-gateway": {
    "display:name": "My Gateway",
    "ai:apitype": "openai-chat",
    "ai:endpoint": "https://gateway.example.com/v1/chat/completions",
    "ai:apitoken": "$ENV:MY_API_KEY",
    "ai:apikeyheader": "x-api-key"
  }
}

Parallel problem in Warp terminal: https://github.com/warpdotdev/warp/issues/11607

Lingua principale
Go
Stelle
22.3k
Fork
1.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wavetermdev/waveterm

Tutte le issue di wavetermdev/waveterm

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.