fix embedding bug

This commit is contained in:
Wenjie Zhang 2024-11-22 00:13:01 +08:00
parent c51c9b152d
commit 5cad89e3d4

View File

@ -58,7 +58,7 @@ class ZhipuEmbedding:
def predict(self, message):
data = []
batch_size = 40
batch_size = 20
if len(message) > batch_size:
global GLOBAL_EMBED_STATE