From 8bb1882c932dbed55eda244a1246f9c5980152c0 Mon Sep 17 00:00:00 2001 From: serdarjan1995 Date: Mon, 29 Jan 2024 05:23:11 +0300 Subject: [PATCH] fix tools/openai_image_generation import (#906) * fix tools/openai_image_generation import * fix tools/openai_image_generation/README.md example code import --- llama_hub/tools/openai_image_generation/README.md | 4 ++-- llama_hub/tools/openai_image_generation/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llama_hub/tools/openai_image_generation/README.md b/llama_hub/tools/openai_image_generation/README.md index 04c1b39e18..35bf23214f 100644 --- a/llama_hub/tools/openai_image_generation/README.md +++ b/llama_hub/tools/openai_image_generation/README.md @@ -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"]) @@ -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"]) diff --git a/llama_hub/tools/openai_image_generation/__init__.py b/llama_hub/tools/openai_image_generation/__init__.py index fbcd8ef66a..3f05773510 100644 --- a/llama_hub/tools/openai_image_generation/__init__.py +++ b/llama_hub/tools/openai_image_generation/__init__.py @@ -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, )