![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@dstanesc/gpt
Advanced tools
Simple unix style utility adding gpt model interaction to the command line
Simple unix style utility adding gpt model interaction to the command line.
npm run clean
npm install
npm run build
From source
npm install -g .
From npm
npm install -g @dstanesc/gpt
$ gpt --help
Usage: gpt [options] 'user prompt'
Options:
-f, --file: input file name, appends file content to user prompt
-p, --prepend: prepend text to piped input
-a, --append: append text to piped input
-m, --model: model name, e.g. mistral-7b-instruct-v0.1.Q4_0.gguf
-d, --device: device type, e.g. cpu, gpu
-t, --temperature: temperature, e.g. 0.7
-c, --context-length: context length, e.g. 2048
-r, --thread-count: thread count, e.g. 24
-s, --system-prompt: system prompt, e.g. '### System: You are an experienced javascript developer'
-o, --topp: topp, e.g. 0.4
-i, --minp: minp, e.g. 0.0
-k, --topk: topk, e.g. 40
Examples:
gpt '1+1'
xsel -b | gpt --prepend 'Pretty print following json' | codedown json | tee pretty.json
echo 'create a javascript code fragment that prints first 10 fibonacci numbers' | gpt | codedown javascript | node
echo 'create a javascript code fragment that prints first 10 fibonacci numbers' | gpt --temperature 0.5 --thread-count 24 --model mistral-7b-instruct-v0.1.Q4_0.gguf | codedown javascript | node
echo 'write a python function that prints first 10 Fibonacci numbers' | gpt | codedown python | python3
echo 'create a html page that displays a plotlyjs based bar chart with the top 10 US cities by population' | gpt | codedown html | tee page.html
Model cache location is ${HOME}/.cache/gpt4all
. Models will be downloaded and cached on first time use. It is recommended to discover models using GPT4All model search feature.
Licensed under either Apache 2.0 or MIT at your option.
FAQs
Simple unix style utility adding gpt model interaction to the command line
We found that @dstanesc/gpt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.