add huoshan & text in

This commit is contained in:
Star 2024-11-03 11:53:31 +08:00
parent d9818bab95
commit 2f34d8791a
3 changed files with 9 additions and 4 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.*
!.gitignore
tests

View File

@ -12,11 +12,13 @@ module:
apigo.cc/gojs/file: latest
apigo.cc/gojs/http: latest
apigo.cc/gojs/db: latest
apigo.cc/ai/llm: latest
apigo.cc/ai: latest
modulealias:
extraimport:
apigo.cc/ai/openai: latest
apigo.cc/ai/zhipu: latest
apigo.cc/ai/huoshan: latest
apigo.cc/ai/textin: latest
cachefile:
sskey:
cgoenable: false

View File

@ -1,8 +1,8 @@
import { zhipu } from 'ai/llm'
import ai from 'ai'
import console from 'console'
// need llm.yml or env.yml to config llm api key, see https://apigo.cc/ai/llm
// need ai.yml or env.yml to config api key, see https://apigo.cc/ai
function main() {
let r = zhipu.fastAsk('hi', console.print)
let r = ai.zhipu.fastAsk('hi', console.print)
console.info(r)
}