SAM3 agent assigns the prompts as the filenames of the json and png results
Hi, I have encountered this issue, where the LLM-generated prompts are used for the filenames.
This issue will result in error when the prompt exceeds a certain length. Error is thrown around the line 256 of agent_core.
For example, this is one of the filenames: "Okay, I will analyze the image and try to identify and locate the fourth tooth from the upper right side. I'll do my best based on the image quality and the possible presence of obstructions..png"
Which is extensively long.
For the mantainers:
I'd love to take this on! made a PR below to sanitize the prompt output.
For the mantainers:
I'd love to take this on! made a PR below to sanitize the prompt output.
Thank you very much. I appreciate it.