### What problem does this PR solve? #2402 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)tags/v0.11.0
| def encode(self, texts: list, batch_size=10): | def encode(self, texts: list, batch_size=10): | ||||
| import dashscope | import dashscope | ||||
| batch_size = min(batch_size, 4) | |||||
| try: | try: | ||||
| res = [] | res = [] | ||||
| token_count = 0 | token_count = 0 |