Skip to content

Commit

Permalink
fix: text null
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Jul 29, 2024
1 parent 1682b71 commit 7c2961c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/CustomGoogleGeminiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7c2961c

Please sign in to comment.