community[patch]: infinity embeddings update incorrect default url (#16759)

The default url has always been incorrect (7797 instead 7997). Here is a
update to the correct url.
This commit is contained in:
Michael Feil 2024-02-12 20:05:08 -08:00 committed by GitHub
parent df7cbd6fbb
commit e1cfd0f3e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,14 +28,14 @@ class InfinityEmbeddings(BaseModel, Embeddings):
from langchain_community.embeddings import InfinityEmbeddings from langchain_community.embeddings import InfinityEmbeddings
InfinityEmbeddings( InfinityEmbeddings(
model="BAAI/bge-small", model="BAAI/bge-small",
infinity_api_url="http://localhost:7797/v1", infinity_api_url="http://localhost:7997",
) )
""" """
model: str model: str
"Underlying Infinity model id." "Underlying Infinity model id."
infinity_api_url: str = "http://localhost:7797/v1" infinity_api_url: str = "http://localhost:7997"
"""Endpoint URL to use.""" """Endpoint URL to use."""
client: Any = None #: :meta private: client: Any = None #: :meta private: