Skip to content

Commit

Permalink
update import for is_hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
raspawar committed Aug 7, 2024
1 parent 2d2e9dd commit 7d71017
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

from haystack import Document, component, default_from_dict, default_to_dict
from haystack.utils import Secret, deserialize_secrets_inplace
from haystack_integrations.util.nvidia import NimBackend
from haystack_integrations.util.nvidia.util import is_hosted
from haystack_integrations.util.nvidia import NimBackend, is_hosted
from tqdm import tqdm

from .truncate import EmbeddingTruncateMode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

from haystack import component, default_from_dict, default_to_dict
from haystack.utils import Secret, deserialize_secrets_inplace
from haystack_integrations.util.nvidia import NimBackend
from haystack_integrations.util.nvidia.util import is_hosted
from haystack_integrations.util.nvidia import NimBackend, is_hosted

from .truncate import EmbeddingTruncateMode

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

from haystack import component, default_from_dict, default_to_dict
from haystack.utils.auth import Secret, deserialize_secrets_inplace
from haystack_integrations.util.nvidia import NimBackend
from haystack_integrations.util.nvidia.util import is_hosted
from haystack_integrations.util.nvidia import NimBackend, is_hosted

_DEFAULT_API_URL = "https://integrate.api.nvidia.com/v1"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from .nim_backend import Model, NimBackend
from .util import is_hosted

__all__ = ["NimBackend", "Model"]
__all__ = ["NimBackend", "Model", "is_hosted"]

0 comments on commit 7d71017

Please sign in to comment.