Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False alarm on streamed calls? #15

Open
rzfzr opened this issue Dec 20, 2023 · 0 comments
Open

False alarm on streamed calls? #15

rzfzr opened this issue Dec 20, 2023 · 0 comments

Comments

@rzfzr
Copy link

rzfzr commented Dec 20, 2023

I'm working on top of the provided example, I would like to use the normal call, not the streamed one.

          const response = await sendMessage(
            messages[1]?.text,
            messageId.current && conversationId.current
              ? {
                  messageId: messageId.current,
                  conversationId: conversationId.current,
                }
              : undefined,
          );

But I get the following error:

[TypeError: Cannot read property 'content' of undefined]

Which can be caused here

message: response.message.content.parts[0],

Is it being seen as a streamed call still?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant