You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

aicat

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 4.0.1

10

aicat.js

@@ -15,6 +15,11 @@ #!/usr/bin/env node

let inputText = "";
let model = 'gpt-3.5-turbo-16k'
for (let i = 2; i < process.argv.length; i++) {
const arg = process.argv[i];
if (arg == '-4') {
model = 'gpt-4'
continue
}
if (fs.existsSync(arg)) {

@@ -33,3 +38,4 @@ inputText += `----- FILE: ${arg} -----\n`;

`
askChat([{role:'user', content: inputText + note}])
askChat([{role:'system', content: 'You are an advanced AI-based software engineer.',
role:'user', content: inputText + note}], model)

1

askchat.js

@@ -19,3 +19,2 @@ import {yieldStream} from 'yield-stream'

presence_penalty: 0.6 }
const stream = await OpenAI("chat", cfg, {mode: 'raw'} )

@@ -22,0 +21,0 @@ let decoder = new TextDecoder()

{
"name": "aicat",
"version": "3.0.1",
"version": "4.0.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "aicat",

@@ -18,3 +18,11 @@ Ask ChatGPT using some files as part of the instructions.

```shell
cat file1.mustache file2.html "extract template fields from file1 and insert into appropriate locations in file2" | tee file2.mustache
aicat file1.mustache file2.html "extract template fields from file1 and insert into appropriate locations in file2" | tee file2.mustache
```
GPT-4
```shell
aicat -4 "list of MLB teams sorted by city name" > mlb.txt
```
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc