mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 添加依赖提示
This commit is contained in:
parent
220525fbbd
commit
315b16ac0d
1 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,9 @@ try {
|
|||
}
|
||||
export class GoogleGeminiClient extends BaseClient {
|
||||
constructor (props) {
|
||||
if (!GoogleGenerativeAI) {
|
||||
throw new Error('未安装@google/generative-ai,无法使用Gemini,请在chatgpt-plugin目录下执行pnpm i安装新依赖')
|
||||
}
|
||||
if (!props.upsertMessage) {
|
||||
props.upsertMessage = async function umGemini (message) {
|
||||
return await upsertMessage(message, 'Gemini')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue