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

Use supplied headers #741

Merged
merged 1 commit into from
Nov 1, 2023
Merged

Use supplied headers #741

merged 1 commit into from
Nov 1, 2023

Conversation

stanfea
Copy link

@stanfea stanfea commented Nov 1, 2023

litellm.headers is not thread safe we should be using the supplied headers anyway
need to use headers to turn on/off helicone caching for example and will want to run some requests with cache on and some with cache off

 ChatLiteLLM(
                model_name='gpt-4',
                max_tokens=7000,
                temperature=0.7,
                model_kwargs={'headers': headers}
            )),

Copy link

vercel bot commented Nov 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2023 1:39pm

Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm ! thanks for the contribution @stanfea. Would love to give you a shoutout in our daily changelog. What's your Linkedin / Twitter ?

@ishaan-jaff ishaan-jaff merged commit 6685047 into BerriAI:main Nov 1, 2023
1 of 2 checks passed
@stanfea
Copy link
Author

stanfea commented Nov 1, 2023

lgtm ! thanks for the contribution @stanfea. Would love to give you a shoutout in our daily changelog. What's your Linkedin / Twitter ?

wow that was fast https://www.linkedin.com/in/stefanbacon/

cheers I'll send more fixes

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