Open hspak opened 1 day ago
At some point between versions 1.41.2 and 1.52.5, litellm stopped supporting extra_headers on litellm.aembeddings for the openai provider.
extra_headers
litellm.aembeddings
We depend on this for some custom auth.
Example usage:
response = await litellm.aembedding( model=EMBEDDING_MODEL, input=strs, dimensions=EMBEDDING_NUM_DIMENSIONS, metadata=<custom>, extra_headers=<custom-headers>, )
No response
I was able to workaround this by setting litellm.aclient_session = httpx.AsyncClient(headers=headers).
litellm.aclient_session = httpx.AsyncClient(headers=headers)
Nvm, litellm.aclient_session seems to lose the authorization header for both completion and embedding calls.
litellm.aclient_session
authorization
What happened?
At some point between versions 1.41.2 and 1.52.5, litellm stopped supporting
extra_headers
onlitellm.aembeddings
for the openai provider.We depend on this for some custom auth.
Example usage:
Relevant log output
No response
Twitter / LinkedIn details
No response