-
Notifications
You must be signed in to change notification settings - Fork 69
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
UnsupportedOperationException on build() call of HuggingFaceChatModel #602
Comments
Thanks for reporting. This is definitely a bug, I'll have a look soon. |
You can however access use CDI to access |
I have tried it with
|
The builder of |
This makes it much easier to construct these programmatically Closes: #602
#604 will provide a default URL |
Right, it's part of the URL really. |
Which I should not is not ideal, but we'll have to take a closer look at what we do with HuggingFace at some point in the future. |
As I can see, the model is part of the url, however, from a library usage point of view it would be great if I could just hand over the modelId, and the url will be constructed for me. |
I agree, we need to redo this as it is not optimal |
That said, if you use the CDI bean, you need to deal with creating the LangChain4j models at all 😀 |
I need it for being able to configure it at runtime, so CDI bean will not be ideal as I would like to be able to create multiple ones with different parameters (potentially for chaining them).
|
I see |
Add default values for URLS of HuggingFace models
I'll reopen since we need to improve here |
Hi there,
I am encountering the following exception when trying to build a dev.langchain4j.model.huggingface.HuggingFaceChatModel
Code to reproduce:
On another note:
Missing
logRequests
andlogResponses
methods on the HuggingFace builder (OpenAI, Anthropic, Gemini and Ollama builders have them defined)The text was updated successfully, but these errors were encountered: