We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c124579 commit e873cd3Copy full SHA for e873cd3
api/routes/embedding.py
@@ -54,7 +54,7 @@ async def create_embeddings(
54
for j in range(0, len(texts), SETTINGS.max_client_batch_size):
55
tasks.append(
56
client.embeddings.create(
57
- input=texts[j: j + SETTINGS.max_client_batch_size],
+ input=[text[:510] for text in texts[j: j + SETTINGS.max_client_batch_size]],
58
model=request.model,
59
)
60
0 commit comments