fix: pre-cache tiktoken encoding before VCR intercepts requests

This commit is contained in:
Greyson LaLonde
2026-04-06 19:37:03 +08:00
parent e1bbab75b3
commit 97866c68ce

View File

@@ -7,6 +7,9 @@ import tiktoken
from pydantic import BaseModel
from crewai.llm import LLM
# Pre-cache tiktoken encoding so VCR doesn't intercept the download request
tiktoken.get_encoding("cl100k_base")
from crewai.llms.providers.anthropic.completion import AnthropicCompletion