Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ai-renamer

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-renamer - npm Package Compare versions

Comparing version 1.0.23 to 1.0.24

4

package.json
{
"version": "1.0.23",
"version": "1.0.24",
"license": "GPL-3.0",

@@ -39,2 +39,4 @@ "name": "ai-renamer",

"file-renamer",
"image-renamer",
"video-renamer",
"file-management",

@@ -41,0 +43,0 @@ "machine-learning"

@@ -10,2 +10,6 @@ # ai-renamer

Rename videos
https://github.com/user-attachments/assets/502aedba-044e-4ed5-a1c7-bca84af2f3ce
Rename images

@@ -17,7 +21,7 @@

https://github.com/ozgrozer/ai-renamer/assets/651938/7ac84a2d-8e05-4756-8827-3bd746b3edae
https://github.com/user-attachments/assets/f8b37c3a-9cc0-48fc-aaea-f25f7b6ee4cc
## Usage
You need to have [Ollama](https://ollama.com/download) or [LM Studio](https://lmstudio.ai/) and at least one LLM (Llava, Gemma, Llama etc.) installed on your system. You need to have [ffmpeg][https://www.ffmpeg.org/download.html] to rename videos.
You need to have [Ollama](https://ollama.com/download) or [LM Studio](https://lmstudio.ai/) and at least one LLM (Llava, Gemma, Llama etc.) installed on your system. You need to have [ffmpeg](https://www.ffmpeg.org/download.html) to rename videos.

@@ -100,2 +104,4 @@ Run with NPX

(e.g: true, false) [string]
-r, --custom-prompt Add a custom prompt to the LLM (e.g. "Only
describe the background") [string]
```

@@ -102,0 +108,0 @@

@@ -75,2 +75,7 @@ const os = require('os')

description: 'Include files in subdirectories when processing (e.g: true, false)'
})
.option('custom-prompt', {
alias: 'r',
type: 'string',
description: 'Add a custom prompt to the LLM (e.g. "Only describe the background")'
}).argv

@@ -128,3 +133,8 @@

if (argv['custom-prompt']) {
config.defaultCustomPrompt = argv['custom-prompt']
await saveConfig({ config })
}
return { argv, config }
}

@@ -5,3 +5,3 @@ const changeCase = require('./changeCase')

module.exports = async options => {
const { _case, chars, content, language, videoPrompt, relativeFilePath } = options
const { _case, chars, content, language, videoPrompt, customPrompt, relativeFilePath } = options

@@ -32,2 +32,6 @@ try {

if (customPrompt) {
promptLines.push('', 'Custom instructions:', customPrompt)
}
const prompt = promptLines.join('\n')

@@ -34,0 +38,0 @@

@@ -7,3 +7,15 @@ const fs = require('fs').promises

module.exports = async ({ inputPath, defaultCase, defaultModel, defaultChars, defaultFrames, defaultApiKey, defaultBaseURL, defaultLanguage, defaultProvider, defaultIncludeSubdirectories }) => {
module.exports = async ({
inputPath,
defaultCase,
defaultModel,
defaultChars,
defaultFrames,
defaultApiKey,
defaultBaseURL,
defaultLanguage,
defaultProvider,
defaultCustomPrompt,
defaultIncludeSubdirectories
}) => {
try {

@@ -46,2 +58,7 @@ const provider = defaultProvider || 'ollama'

const customPrompt = defaultCustomPrompt || null
if (customPrompt) {
console.log(`⚪ Custom Prompt: ${customPrompt}`)
}
console.log('--------------------------------------------------')

@@ -60,3 +77,4 @@

inputPath,
includeSubdirectories
includeSubdirectories,
customPrompt
}

@@ -63,0 +81,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc