add huoshan & text in
This commit is contained in:
parent
d9818bab95
commit
2f34d8791a
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.*
|
||||||
|
!.gitignore
|
||||||
|
tests
|
@ -12,11 +12,13 @@ module:
|
|||||||
apigo.cc/gojs/file: latest
|
apigo.cc/gojs/file: latest
|
||||||
apigo.cc/gojs/http: latest
|
apigo.cc/gojs/http: latest
|
||||||
apigo.cc/gojs/db: latest
|
apigo.cc/gojs/db: latest
|
||||||
apigo.cc/ai/llm: latest
|
apigo.cc/ai: latest
|
||||||
modulealias:
|
modulealias:
|
||||||
extraimport:
|
extraimport:
|
||||||
apigo.cc/ai/openai: latest
|
apigo.cc/ai/openai: latest
|
||||||
apigo.cc/ai/zhipu: latest
|
apigo.cc/ai/zhipu: latest
|
||||||
|
apigo.cc/ai/huoshan: latest
|
||||||
|
apigo.cc/ai/textin: latest
|
||||||
cachefile:
|
cachefile:
|
||||||
sskey:
|
sskey:
|
||||||
cgoenable: false
|
cgoenable: false
|
||||||
|
6
main.js
6
main.js
@ -1,8 +1,8 @@
|
|||||||
import { zhipu } from 'ai/llm'
|
import ai from 'ai'
|
||||||
import console from 'console'
|
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() {
|
function main() {
|
||||||
let r = zhipu.fastAsk('hi', console.print)
|
let r = ai.zhipu.fastAsk('hi', console.print)
|
||||||
console.info(r)
|
console.info(r)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user