Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

什么时候有default_headers的支持 #392

Open
zhenkaivip opened this issue Nov 8, 2024 · 1 comment
Open

什么时候有default_headers的支持 #392

zhenkaivip opened this issue Nov 8, 2024 · 1 comment

Comments

@zhenkaivip
Copy link

client = OpenAI(
    api_key=openai_api_key,
    base_url=openai_api_base,
    max_retries=0,
    default_headers={
        "X-GW-Authorization": token,
    },

)

qwen agent 好像不支持 default_headers ,什么时候支持

@tuhahaha
Copy link
Collaborator

你好,目前是支持传额外参数的,放到generate_cfg里即可

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

No branches or pull requests

2 participants