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

community[patch]: Allow custom headers on Ollama / ChatOllama / OllamaEmbeddings #4466

Merged
merged 3 commits into from
Feb 21, 2024

Conversation

alvarosevilla95
Copy link
Contributor

Adds a constructor param to Ollama / ChatOllama / OllamaEmbeddings allowing custom headers to be included on the API requests

Closes #4465

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 20, 2024
Copy link

vercel bot commented Feb 20, 2024

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

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2024 9:07pm
langchainjs-docs ✅ Ready (Inspect) Visit Preview Feb 21, 2024 9:07pm

@dosubot dosubot bot added the auto:improvement Medium size change to existing code to handle new use-cases label Feb 20, 2024
@alvarosevilla95 alvarosevilla95 changed the title allow custom headers on Ollama and ChatOllama llms Allow custom headers on Ollama and ChatOllama llms Feb 20, 2024
@alvarosevilla95 alvarosevilla95 changed the title Allow custom headers on Ollama and ChatOllama llms Allow custom headers on Ollama / ChatOllama / OllamaEmbeddings Feb 20, 2024
@jacoblee93 jacoblee93 added the lgtm PRs that are ready to be merged as-is label Feb 21, 2024
@jacoblee93
Copy link
Collaborator

Thank you!

@jacoblee93 jacoblee93 changed the title Allow custom headers on Ollama / ChatOllama / OllamaEmbeddings community[patch]: Allow custom headers on Ollama / ChatOllama / OllamaEmbeddings Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:improvement Medium size change to existing code to handle new use-cases lgtm PRs that are ready to be merged as-is size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom headers for Ollama / ChatOllama
2 participants