9 lines
227 B
JavaScript
9 lines
227 B
JavaScript
import { zhipu } from 'ai/llm'
|
|
import console from 'console'
|
|
|
|
// need llm.yml or env.yml to config llm api key, see https://apigo.cc/ai/llm
|
|
function main() {
|
|
let r = zhipu.fastAsk('hi', console.print)
|
|
console.info(r)
|
|
}
|