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大模型低代码工具 # 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 ### Sample
#### test.js #### test.js
@ -34,12 +17,6 @@ function main(...args) {
} }
``` ```
#### run sample
```shell
llm-cli test.js "你好"
```
### Configure ### Configure
#### env.yml #### env.yml
@ -85,6 +62,7 @@ package main
import ( import (
_ "apigo.cc/ai/llm" _ "apigo.cc/ai/llm"
_ "apigo.cc/ai/zhipu"
"apigo.cc/gojs" "apigo.cc/gojs"
_ "apigo.cc/gojs/console" _ "apigo.cc/gojs/console"
) )

View File

@ -69,6 +69,7 @@ func init() {
TsCode: llmTSCode, TsCode: llmTSCode,
Desc: "llm plugin for gojs(http://apigo.cc/gojs)", Desc: "llm plugin for gojs(http://apigo.cc/gojs)",
Example: llmMD, Example: llmMD,
SetSSKey: SetSSKey,
}) })
} }