From d4009cf0c326504cc4993081592852d8974e10ae Mon Sep 17 00:00:00 2001 From: Star Date: Fri, 25 Oct 2024 16:02:45 +0800 Subject: [PATCH] add SetSSKey for register in gojs --- README.md | 24 +----------------------- config.go | 7 ++++--- 2 files changed, 5 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index a79d974..d95160f 100644 --- a/README.md +++ b/README.md @@ -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" ) diff --git a/config.go b/config.go index 65578e8..1822553 100644 --- a/config.go +++ b/config.go @@ -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, }) }