Open
Description
Confirm this is a Node library issue and not an underlying OpenAI API issue
- This is an issue with the Node library
Describe the bug
Hardcoding the header in the function declaration is causing the defaultHeader override to not work.
To Reproduce
- Create a new OpenAI instance
- Set the defaultHeaders to include 'x-stainless-retry-count': null
- See the header being included nonetheless
Code snippets
new OpenAI({
baseURL: baseURL,
apiKey: '',
defaultHeaders: {
'x-stainless-os': null,
'x-stainless-runtime': null,
'x-stainless-arch': null,
'x-stainless-lang': null,
'x-stainless-helper-method': null,
'x-stainless-timeout': null,
'x-stainless-package-version': null,
'x-stainless-runtime-version': null,
'x-stainless-retry-count': null,
},
}),
OS
macOS
Node version
v20.17.0
Library version
openai@4.92.1: