Skip to content

image generation looping issue #26

@Zenodia

Description

@Zenodia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions