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

Commit

Permalink
fix tools/openai_image_generation import (#906)
Browse files Browse the repository at this point in the history
* fix tools/openai_image_generation import

* fix tools/openai_image_generation/README.md example code import
  • Loading branch information
serdarjan1995 authored Jan 29, 2024
1 parent e382a46 commit 8bb1882
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 8bb1882

Please sign in to comment.