ai-renamer
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"license": "GPL-3.0", | ||
@@ -4,0 +4,0 @@ "name": "ai-renamer", |
@@ -5,3 +5,14 @@ const ollama = require('ollama').default | ||
try { | ||
const prompt = `Given the following file content, suggest a concise and descriptive filename in ${_case} format. Make the maximum number of characters ${chars} in the new filename. Don't include the extension. Don't include any special character. Don't include any description. Don't include any other text. Just give me the filename.\n\n${content}` | ||
const prompt = ` | ||
Generate a concise, descriptive filename for the following content: | ||
- Use ${_case} format | ||
- Maximum ${chars} characters | ||
- Exclude file extension | ||
- Avoid special characters | ||
- Output only the filename | ||
IMPORTANT: Your entire response should be just the filename in ${_case} format and max ${chars} characters. Do not include any other text. | ||
Content: | ||
${content}` | ||
const res = await ollama.generate({ model, prompt }) | ||
@@ -8,0 +19,0 @@ return res.response.trim() |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45338
246