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

Weird result with openAI config #374

Open
pipilurj opened this issue Feb 19, 2025 · 1 comment
Open

Weird result with openAI config #374

pipilurj opened this issue Feb 19, 2025 · 1 comment

Comments

@pipilurj
Copy link

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
Copy link
Author

Image

The above is the bug I often encounter

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