Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image generation looping issue #26

Open
Zenodia opened this issue Aug 22, 2024 · 0 comments
Open

image generation looping issue #26

Zenodia opened this issue Aug 22, 2024 · 0 comments

Comments

@Zenodia
Copy link

Zenodia commented Aug 22, 2024

Problem :
I cloned and modified the toy examples here https://github.com/langchain-ai/langgraph-example.git
and modified to use image generation ( API call from ai.nvidia.com )
however, whenever my query is using this tool, it kept looping without able to give back an answer.

Could someone please take a look ?

expect output:
the agent answer where the generated image is located, it should something similar to the below :
Sure, the generated image is saved to this location : output.jpg

Steps to repeat :
follow the instruction from official langgraph studio repo https://github.com/langchain-ai/langgraph-studio?tab=readme-ov-file#setup up to Setup
clone my modified repo instead https://github.com/Zenodia/langgraphstudio_zcharpy and proceed the steps as usual until set keys in .env

follow this link and obtain NVIDIA_API_KEY https://python.langchain.com/v0.2/docs/integrations/chat/nvidia_ai_endpoints/#setup
create .env file and obtain NVIDIA_API_KEY
in a terminal also export it , making sure the NVIDIA_API_KEY exist in the environment
export NVIDIA_API_KEY
then spin up the LangGraph Studio app , in the UI
try the following query :
make an image of a beautiful town

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant