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.7 to 1.0.8

2

package.json
{
"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()

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