ai-renamer
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"license": "GPL-3.0", | ||
@@ -4,0 +4,0 @@ "name": "ai-renamer", |
@@ -10,3 +10,3 @@ # ai-renamer | ||
You need [Ollama](https://ollama.com/download) and at least one LLM (Llama, Gemma etc.) installed on your system | ||
You need to have [Ollama](https://ollama.com/download) and at least one LLM (Llama, Gemma etc.) installed on your system | ||
@@ -13,0 +13,0 @@ Run with NPX |
@@ -5,3 +5,3 @@ 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 other text or description. Just the filename.\n\n${content}` | ||
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 res = await ollama.generate({ model, prompt }) | ||
@@ -8,0 +8,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
45310
238