LangChain - LangSmith Observability
You run this code and get an AttributeError: 'NoneType' object has no attribute 'total_tokens'. What is the most probable reason?
cb = get_openai_callback()
chain.run("Example")
print(cb.total_tokens)