feat: support chatglm.cn

This commit is contained in:
ikechan8370 2024-01-17 13:06:59 +08:00
parent 8bdf9a3b6d
commit c69358cd80
7 changed files with 287 additions and 23 deletions

View file

@ -0,0 +1,17 @@
import { ChatGLM4Client } from '../ChatGLM4Client.js'
async function sendMsg () {
const client = new ChatGLM4Client({
refreshToken: '',
debug: true
})
let res = await client.sendMessage('你好啊')
console.log(res)
}
// global.redis = null
// global.logger = {
// info: console.log,
// warn: console.warn,
// error: console.error
// }
// sendMsg()

View file

@ -0,0 +1,10 @@
import { GoogleGeminiClient } from '../GoogleGeminiClient.js'
async function test () {
const client = new GoogleGeminiClient({
e: {},
userId: 'test',
key: '',
model: 'gemini-pro'
})
}