openai langchain beautifulsoup4 anthropic backoff tiktoken