mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-20 18:02:37 +00:00
fix: pre-cache tiktoken encoding before VCR intercepts requests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user