sam3 icon indicating copy to clipboard operation
sam3 copied to clipboard

SAM3 agent assigns the prompts as the filenames of the json and png results

Open BahMoh opened this issue 4 months ago • 2 comments

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.

BahMoh avatar Nov 30 '25 14:11 BahMoh

For the mantainers:

I'd love to take this on! made a PR below to sanitize the prompt output.

mattiagaggi avatar Dec 02 '25 00:12 mattiagaggi

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.

BahMoh avatar Dec 14 '25 18:12 BahMoh