Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

chunk['text'] gets incomplete anwser #216

Open
iujakchu opened this issue Aug 3, 2023 · 3 comments
Open

chunk['text'] gets incomplete anwser #216

iujakchu opened this issue Aug 3, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@iujakchu
Copy link

iujakchu commented Aug 3, 2023

for chunk in client.send_message("capybara",msg):
    pass
#pyright: reportUnboundVariable=none
with open("output.txt","w+") as f:
    f.write(chunk['text'])

returns

The best way to learn a programming language depends on your learning style and your goals. Here are some general tips that can help you to learn a programming language effectively:

1. Start with the basics: Begin by learning the basic syntax and structure of the programming language. This will help you to understand how the language works and how to write simple programs.

2. Practice coding: The more you practice coding, the better you will become at it. Try writing small programs, experimenting with different techniques, and working on projects that interest you.

3. Use a variety of resources: There are many resources available for learning programming languages, including textbooks, online courses, videos, and tutorials. Try using a combination of these resources to find what works best for you.

4. Work on real-world projects: Working on real-world projects can help you to apply your knowledge and develop practical skills. Try contributing to open-source projects, building your own projects, or participating in coding challenges.

5. Seek feedback: Getting feedback from others can help you to identify areas for improvement and learn from your mistakes. Joining a coding community or working with a mentor can provide opportunities for feedback and support.

6. Stay motivated: Learning a programming language can be challenging, but it can also be rewarding. Stay motivated by setting achievable goals, celebrating your achievements, and focusing on the aspects of coding that you enjoy the most.

Remember, learning a programming language takes time

but the message from the browser is

The best way to learn a programming language depends on your learning style and your goals. Here are some general tips that can help you to learn a programming language effectively:

Start with the basics: Begin by learning the basic syntax and structure of the programming language. This will help you to understand how the language works and how to write simple programs.

Practice coding: The more you practice coding, the better you will become at it. Try writing small programs, experimenting with different techniques, and working on projects that interest you.

Use a variety of resources: There are many resources available for learning programming languages, including textbooks, online courses, videos, and tutorials. Try using a combination of these resources to find what works best for you.

Work on real-world projects: Working on real-world projects can help you to apply your knowledge and develop practical skills. Try contributing to open-source projects, building your own projects, or participating in coding challenges.

Seek feedback: Getting feedback from others can help you to identify areas for improvement and learn from your mistakes. Joining a coding community or working with a mentor can provide opportunities for feedback and support.

Stay motivated: Learning a programming language can be challenging, but it can also be rewarding. Stay motivated by setting achievable goals, celebrating your achievements, and focusing on the aspects of coding that you enjoy the most.

Remember, learning a programming language takes time and effort, so be patient and persistent in your efforts. With practice and dedication, you can develop your programming skills and achieve your goals.

Is it expected behavior?Thanks.

@BSG-Walter
Copy link

i have the same issue,
sometimes it returns the complete message, but sometimes it misses 1 or more chunks

@ading2210 ading2210 added the bug Something isn't working label Aug 4, 2023
@d1h1r1
Copy link

d1h1r1 commented Aug 4, 2023

改一下源码就好了
image
send_message这个函数里面

@iujakchu
Copy link
Author

iujakchu commented Aug 5, 2023

改一下源码就好了 image send_message这个函数里面

大佬可以提个pull requests吗

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants