Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#3,453 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
go
Lĩnh vực
api, authentication

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
22.4k
Fork
1.1k
Merge trung bình
12 ngày 6 giờ
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wavetermdev/waveterm

Tất cả issue của wavetermdev/waveterm

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.