add SetSSKey for register in gojs

This commit is contained in:
Star 2024-10-25 16:02:45 +08:00
parent 2931239ee4
commit d4009cf0c3
2 changed files with 5 additions and 26 deletions

View File

@ -1,22 +1,5 @@
# AI大模型低代码工具
## 命令行工具
### Install
```shell
go install apigo.cc/ai/llm/llm-cli@latest
```
### Usage
```shell
llm-cli -h | help show usage
llm-cli -e | export export ai.ts file for develop
llm-cli test.js run test.js, if not specified, run ai.js
llm-cli -w | watch test.js run test.js, if .js files changed will be reloaded
```
### Sample
#### test.js
@ -34,12 +17,6 @@ function main(...args) {
}
```
#### run sample
```shell
llm-cli test.js "你好"
```
### Configure
#### env.yml
@ -85,6 +62,7 @@ package main
import (
_ "apigo.cc/ai/llm"
_ "apigo.cc/ai/zhipu"
"apigo.cc/gojs"
_ "apigo.cc/gojs/console"
)

View File

@ -66,9 +66,10 @@ func init() {
}
return jsObj
},
TsCode: llmTSCode,
Desc: "llm plugin for gojs(http://apigo.cc/gojs)",
Example: llmMD,
TsCode: llmTSCode,
Desc: "llm plugin for gojs(http://apigo.cc/gojs)",
Example: llmMD,
SetSSKey: SetSSKey,
})
}