feat: support configurable auth header name for custom AI endpoints (e.g. x-api-key)
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wavetermdev/waveterm
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
wavetermdev/waveterm#3481 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
wavetermdev/waveterm#3435 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
wavetermdev/waveterm#3432 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
wavetermdev/waveterm#3431 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
wavetermdev/waveterm#3428 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của wavetermdev/waveterm
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/engineering pulumi/pulumi-terraform Task Workflow Failure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
pulumi/pulumi-terraform#1215 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-acceptance wg/developer-experience-ecosystem
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
vllm-project/semantic-router#4480 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/docs kind/documentation priority/backlog triage/accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
lexfrei/cloudflare-tunnel-gateway-controller#943 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
keyxmakerx/Chronicle#967 ·
Maintainer thường phản hồi trong vòng 1 ngày