Skip to content

Commit

Permalink
Add missing import in NvidiaGenerator docstring (#559)
Browse files Browse the repository at this point in the history
* Add missing import in NvidiaGenerator docstring

* Export NvidiaGeneratorModel in nvidia package
  • Loading branch information
silvanocerza authored Mar 7, 2024
1 parent ead381e commit 6e00364
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
#
# SPDX-License-Identifier: Apache-2.0
from .generator import NvidiaGenerator
from .models import NvidiaGeneratorModel

__all__ = ["NvidiaGenerator"]
__all__ = ["NvidiaGenerator", "NvidiaGeneratorModel"]
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class NvidiaGenerator:
Usage example:
```python
from haystack_integrations.components.generators.nvidia import NvidiaGenerator
from haystack_integrations.components.generators.nvidia import NvidiaGenerator, NvidiaGeneratorModel
generator = NvidiaGenerator(
model=NvidiaGeneratorModel.NV_LLAMA2_RLHF_70B,
Expand Down

0 comments on commit 6e00364

Please sign in to comment.