-
Notifications
You must be signed in to change notification settings - Fork 703
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
[FEATURE] Ollama Authentication Header injection #586
Labels
Comments
total blocker :( |
langchain4j
pushed a commit
that referenced
this issue
May 7, 2024
## Context See #586 ## Change Add `customHeaders` parameter in `Ollama*Model` builders ## Checklist Before submitting this PR, please check the following points: - [ ] I have added unit and integration tests for my change - [x] All unit and integration tests in the module I have added/changed are green - [x] All unit and integration tests in the [core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core) and [main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j) modules are green - [ ] I have added/updated the [documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs) - [ ] I have added an example in the [examples repo](https://github.com/langchain4j/langchain4j-examples) (only for "big" features)
geoand
added a commit
to quarkiverse/quarkus-langchain4j
that referenced
this issue
May 13, 2024
geoand
added a commit
to quarkiverse/quarkus-langchain4j
that referenced
this issue
May 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there,
I have run a Ollama Instance behind a Authentication Proxy so i need to send a Authentication Header for every Ollama Request.
In your current OllamaClient implementation I can't handle that in any way. See:
langchain4j/langchain4j-ollama/src/main/java/dev/langchain4j/model/ollama/OllamaClient.java
Line 33 in 057730b
please add a OKHttpClient on your builder as optional so I am able to do an inject like so:
Thanks a lot!
The text was updated successfully, but these errors were encountered: