text: Skip to main contentğŸ¦œï¸�ğŸ”— LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksArgillaContextInfino - LangChain LLM Monitoring ExamplePromptLayerStreamlitChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsToolsVector storesGrouped by providerIntegrationsCallbacksInfino - LangChain LLM Monitoring ExampleOn this pageInfino - LangChain LLM Monitoring ExampleThis example shows how one can track the following while calling OpenAI models via LangChain and Infino:prompt input,response from chatgpt or any other LangChain model,latency,errors,number of tokens consumed# Install necessary dependencies.pip install infinopypip install matplotlib# Remove the (1) import sys and sys.path.append(..) and (2) uncomment `!pip install langchain` after merging the PR for Infino/LangChain integration.import syssys.path.append("../../../../../langchain")#!pip install langchainimport datetime as dtfrom infinopy import InfinoClientimport jsonfrom langchain.llms import OpenAIfrom langchain.callbacks import InfinoCallbackHandlerimport matplotlib.pyplot as pltimport matplotlib.dates as mdimport osimport timeimport sys    Requirement already satisfied: matplotlib in /Users/vinaykakade/.pyenv/versions/3.10.11/lib/python3.10/site-packages (3.7.1)    Requirement already satisfied: contourpy>=1.0.1 in /Users/vinaykakade/.pyenv/versions/3.10.11/lib/python3.10/site-packages (from matplotlib) (1.0.7)    Requirement already satisfied: cycler>=0.10 in /Users/vinaykakade/.pyenv/versions/3.10.11/lib/python3.10/site-packages (from