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

feat: HuggingFaceAPIDocumentEmbedder #7485

Merged
merged 19 commits into from
Apr 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rm unneeded else
  • Loading branch information
anakin87 committed Apr 5, 2024
commit fb21201a017fb1390b26d93224ad541e248f93e7
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ def __init__(
if not is_valid_http_url(url):
raise ValueError(f"Invalid URL: {url}")
model_or_url = url
else:
raise ValueError(
f"Unsupported API type: {api_type}. Supported types are: {[e.value for e in HFEmbeddingAPIType]}"
)

self.api_type = api_type
self.api_params = api_params
Expand Down