Compare commits

...

2 Commits

Author SHA1 Message Date
Star
797d9e0756 fix go version 2024-10-29 12:34:17 +08:00
d4009cf0c3 add SetSSKey for register in gojs 2024-10-25 16:02:45 +08:00
3 changed files with 6 additions and 29 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,
})
}

4
go.mod
View File

@ -1,8 +1,6 @@
module apigo.cc/ai/llm
go 1.22
toolchain go1.22.5
go 1.18
require (
apigo.cc/gojs v0.0.3