Skip to content
Snippets Groups Projects
Unverified Commit dafd97de authored by James Briggs's avatar James Briggs Committed by GitHub
Browse files

Update semantic_router/encoders/openai.py

parent d4e79d9d
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,6 @@ class OpenAIEncoder(BaseEncoder): ...@@ -81,7 +81,6 @@ class OpenAIEncoder(BaseEncoder):
# check if any document exceeds token limit and truncate if so # check if any document exceeds token limit and truncate if so
for i in range(len(docs)): for i in range(len(docs)):
docs[i] = self._truncate(docs[i]) docs[i] = self._truncate(docs[i])
# logger.info(f"Document {i+1} trunc length: {len(docs[i])}")
# Exponential backoff # Exponential backoff
for j in range(1, 7): for j in range(1, 7):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment