Socket
Book a DemoInstallSign in
Socket

auto-fun

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-fun

## 简介(introduction)

2.1.3
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

auto function

简介(introduction)

借助 ai 让你的 ts/js 函数更智能

安装(installation)

npm i auto-fun
import * as autoFun from "auto-fun";

aiFun.config({
    type: "chatgpt",
    key: "sk-****",
});
let f = new autoFun.def({ input: { sen: "句子" }, output: { type: "'积极'|'消极'" }, script: ["返回sen的感情"] });
let type0 = await f.run("我好开心").result.type; // "积极"
let type1 = await f.run("我好难过").result.type; // "消极"
<script src="./dist/autoFun.umd.js"></script>
<script></script>

FAQs

Package last updated on 27 Feb 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.