You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ilariapet (Jira)" <ji...@apache.org> on 2025/11/21 12:44:00 UTC

[jira] [Created] (SOLR-18000) HuggingFace Embedding Failure Due to Deprecated Endpoint in langchain4j

ilariapet created SOLR-18000:
--------------------------------

             Summary: HuggingFace Embedding Failure Due to Deprecated Endpoint in langchain4j
                 Key: SOLR-18000
                 URL: https://issues.apache.org/jira/browse/SOLR-18000
             Project: Solr
          Issue Type: Bug
    Affects Versions: 9.10
            Reporter: ilariapet


When attempting to use any HuggingFace embedding model within Solr’s LLM module, the request fails:
{code:java}
"error": {"msg": "status code: 410; body: {\"error\":\"https://api-inference.huggingface.co is no longer supported. Please use https://router.huggingface.co instead.\"}", {code}
A recent commit in langchain4j changed the {*}default BASE_URL{*}, switching from the deprecated endpoint to the new one:

[https://github.com/langchain4j/langchain4j/commit/048b07a7ffd44932f9a8f9a7edc7a8d19d0d4c61]

However, this fix has not yet been included in an official langchain4j release. 

Update the langchain4j dependency in Solr to a version that includes the BASE_URL fix. This will ensure HuggingFace models correctly use {{{}https://router.huggingface.co{}}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org