openai: add CustomHeaders to ChatModelConfig for parity with agenticopenai#905
Open
MOWmsc wants to merge 1 commit into
Open
openai: add CustomHeaders to ChatModelConfig for parity with agenticopenai#905MOWmsc wants to merge 1 commit into
MOWmsc wants to merge 1 commit into
Conversation
…penai ChatModelConfig now exposes CustomHeaders to set extra HTTP headers on every request. The underlying openai.Config and genRequest() already support CustomHeaders mapping, so no changes are needed in the acl library. Also adds WithCustomHeaders option function for per-request header overrides, consistent with agenticopenai.ChatConfig naming. Fixes cloudwego/eino-ext#1048
MOWmsc
force-pushed
the
feat/add-custom-headers-to-chatmodel-config
branch
from
July 4, 2026 15:29
a63b545 to
a67171b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ChatModelConfig now exposes CustomHeaders to set extra HTTP headers on every request. The underlying
openai.ConfigandgenRequest()already support CustomHeaders mapping, so no changes are needed in the acl library.Changes
CustomHeaders map[string]stringfield toChatModelConfig, and map it toopenai.Config.CustomHeadersinNewChatModelWithCustomHeadersoption function for per-request header overrides (consistent withagenticopenai.ChatConfignaming)How it works
The full CustomHeaders pipeline already exists in the lower layers — this PR just exposes the configuration entry point:
Fixes #1048