mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: text null
This commit is contained in:
parent
1682b715fd
commit
7c2961cdcd
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
|
|||
if (responseContent.parts.find(i => i.functionCall)) {
|
||||
// functionCall
|
||||
const functionCall = responseContent.parts.find(i => i.functionCall).functionCall
|
||||
const text = responseContent.parts.find(i => i.text).text
|
||||
const text = responseContent.parts.find(i => i.text)?.text
|
||||
if (text) {
|
||||
// send reply first
|
||||
opt.replyPureTextCallback && await opt.replyPureTextCallback(text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue