ozgrozer / ai-renamer

A Node.js CLI that uses Ollama and LM Studio models (Llava, Gemma, Llama etc.) to intelligently rename files by their contents
https://x.com/ozgrozer/status/1812591967756255298
GNU General Public License v3.0
1.44k stars 89 forks source link

improvement :: Unique File Name Generation for Duplicate Files #14

Open ezzdev opened 1 month ago

ezzdev commented 1 month ago

Instead of appending a number to duplicate file names, regenerate a new unique name to avoid numbering.

You can add "& filename not {{existing filename}}" or a similar phrase to the prompt to ensure a unique name.

ezzdev commented 1 month ago

image

ozgrozer commented 1 month ago

Yeah that's possible