vision-agent icon indicating copy to clipboard operation
vision-agent copied to clipboard

Weird result with openAI config

Open pipilurj opened this issue 1 week ago • 1 comments

Dear authors, Thank you so much for this in interesting work. I am trying to run vision agent locally with openai config the the following example: from vision_agent.agent import VisionAgentCoderV2 from vision_agent.models import AgentMessage

agent = VisionAgentCoderV2(verbose=True) code_context = agent.generate_code( [ AgentMessage( role="user", content="Count the number of apples in this image", media=["apples.png"] ) ] )

with open("generated_code.py", "w") as f: f.write(code_context.code + "\n" + code_context.test)

But I got the following outputs:

Image

The resulting code also contains bugs.

I wonder if this is because I am using the OpenAI config rather than Anthropic config? Thanks!

pipilurj avatar Feb 19 '25 09:02 pipilurj