Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

fix tools/openai_image_generation import #906

Merged
merged 2 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions llama_hub/tools/openai_image_generation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This tool has a more extensive example usage documented in a Jupyter notebook [h

### Usage with Agent
```python
from llama_hub.tools.openai.image_generation import OpenAIImageGenerationToolSpec
from llama_hub.tools.openai_image_generation import OpenAIImageGenerationToolSpec

image_generation_tool = OpenAIImageGenerationToolSpec(api_key=os.environ["OPENAI_API_KEY"])

Expand All @@ -24,7 +24,7 @@ print(response)

### Usage directly
```python
from llama_hub.tools.openai.image_generation import OpenAIImageGenerationToolSpec
from llama_hub.tools.openai_image_generation import OpenAIImageGenerationToolSpec

image_generation_tool = OpenAIImageGenerationToolSpec(api_key=os.environ["OPENAI_API_KEY"])

Expand Down
2 changes: 1 addition & 1 deletion llama_hub/tools/openai_image_generation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## init file
from llama_hub.tools.openai.image_generation.base import (
from llama_hub.tools.openai_image_generation.base import (
OpenAIImageGenerationToolSpec,
)

Expand Down
Loading