Skip to content

Support custom HTTP headers for model requests#881

Closed
dst1213 wants to merge 1 commit into
Hmbown:mainfrom
dst1213:feat/custom-http-headers
Closed

Support custom HTTP headers for model requests#881
dst1213 wants to merge 1 commit into
Hmbown:mainfrom
dst1213:feat/custom-http-headers

Conversation

@dst1213
Copy link
Copy Markdown
Contributor

@dst1213 dst1213 commented May 6, 2026

Summary

  • add configurable custom HTTP headers for model API requests
  • support root and provider-level http_headers, plus DEEPSEEK_HTTP_HEADERS overrides
  • forward resolved dispatcher headers into the TUI process and document usage

Verification

  • git diff --check
  • macOS verification: cargo fmt --all, cargo test -p deepseek-config http_headers, cargo test -p deepseek-tui headers, cargo build --release -p deepseek-tui-cli -p deepseek-tui, TOML parse check for config.example.toml

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@Hmbown
Copy link
Copy Markdown
Owner

Hmbown commented May 6, 2026

thank you!!

Hmbown added a commit that referenced this pull request May 6, 2026
Integrates the useful custom HTTP header support from #881 onto current main.

- support root, provider-specific, and DEEPSEEK_HTTP_HEADERS overrides
- apply validated extra headers to model API requests while preserving protected Authorization and Content-Type defaults
- document the config shape in README, config.example.toml, and docs/CONFIGURATION.md

Co-authored-by: Desheng <8596814+dst1213@users.noreply.github.com>
@Hmbown
Copy link
Copy Markdown
Owner

Hmbown commented May 6, 2026

Integrated the custom HTTP header support from this PR via #914 and merged it into main. I preserved contributor credit in the squash commit with a Co-authored-by trailer. Thank you for the contribution.

@Hmbown Hmbown closed this May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants