feat(provider): support custom headers injection for HTTP providers (#2402)

* feat(provider): support custom headers injection for HTTP providers

* fix(provider): resolve lint problem

* fix(provider): align stream user-agent and header precedence docs
This commit is contained in:
LC
2026-04-07 16:05:21 +08:00
committed by GitHub
parent 778f939302
commit 38a498e202
16 changed files with 389 additions and 15 deletions
+1
View File
@@ -19,6 +19,7 @@ export interface ModelInfo {
request_timeout?: number
thinking_level?: string
extra_body?: Record<string, unknown>
custom_headers?: Record<string, string>
// Meta
available: boolean
status: "available" | "unconfigured" | "unreachable"