- [1mUser prompt saved to Trubrics.[0mprint("--> GPT's joke: ", res.generations[0][0].text)print()print("--> GPT's poem: ", res.generations[1][0].text)    --> GPT's joke:          Q: What did the fish say when it hit the wall?    A: Dam!        --> GPT's poem:          A Poem of Reflection        I stand here in the night,    The stars above me filling my sight.    I feel such a deep connection,    To the world and all its perfection.        A moment of clarity,    The calmness in the air so serene.    My mind is filled with peace,    And I am released.        The past and the present,    My thoughts create a pleasant sentiment.    My heart is full of joy,    My soul soars like a toy.        I reflect on my life,    And the choices I have made.    My struggles and my strife,    The lessons I have paid.        The future is a mystery,    But I am ready to take the leap.    I am ready to take the lead,    And to create my own destiny.2. With a chat model‚Äãfrom langchain.chat_models import ChatOpenAIfrom langchain.prompts import PromptTemplatefrom langchain.schema import HumanMessage, SystemMessagefrom langchain.callbacks import TrubricsCallbackHandlerchat_llm = ChatOpenAI(    callbacks=[        TrubricsCallbackHandler(            project="default",            tags=["chat model"],            user_id="user-id-1234",            some_metadata={"hello": [1, 2]}        )    ])chat_res = chat_llm(    [        SystemMessage(content="Every answer of yours must be about OpenAI."),        HumanMessage(content="Tell me a joke"),    ])    [32m2023-09-26 11:30:10.550[0m | [1mINFO    [0m | [36mtrubrics.platform[0m:[36mlog_prompt[0m:[36m102[0m - [1mUser prompt saved to Trubrics.[0mprint(chat_res.content)    Why did the OpenAI computer go to the party?        Because it wanted to meet its AI friends and have a byte of fun!PreviousStreamlitNextChat loadersInstallation and SetupGetting Trubrics CredentialsUsageExamples1. With an LLM2. With a chat
Trubrics
Trubrics ->: - [1mUser prompt saved to Trubrics.[0mprint("--> GPT's joke: ", res.generations[0][0].text)print()print("--> GPT's poem: ", res.generations[1][0].text)    --> GPT's joke:          Q: What did the fish say when it hit the wall?    A: Dam!        --> GPT's poem:          A Poem of Reflection        I stand here in the night,    The stars above me filling my sight.    I feel such a deep connection,    To the world and all its perfection.        A moment of clarity,    The calmness in the air so serene.    My mind is filled with peace,    And I am released.        The past and the present,    My thoughts create a pleasant sentiment.    My heart is full of joy,    My soul soars like a toy.        I reflect on my life,    And the choices I have made.    My struggles and my strife,    The lessons I have paid.        The future is a mystery,    But I am ready to take the leap.    I am ready to take the lead,    And to create my own destiny.2. With a chat model‚Äãfrom langchain.chat_models import ChatOpenAIfrom langchain.prompts import PromptTemplatefrom langchain.schema import HumanMessage, SystemMessagefrom langchain.callbacks import TrubricsCallbackHandlerchat_llm = ChatOpenAI(    callbacks=[        TrubricsCallbackHandler(            project="default",            tags=["chat model"],            user_id="user-id-1234",            some_metadata={"hello": [1, 2]}        )    ])chat_res = chat_llm(    [        SystemMessage(content="Every answer of yours must be about OpenAI."),        HumanMessage(content="Tell me a joke"),    ])    [32m2023-09-26 11:30:10.550[0m | [1mINFO    [0m | [36mtrubrics.platform[0m:[36mlog_prompt[0m:[36m102[0m - [1mUser prompt saved to Trubrics.[0mprint(chat_res.content)    Why did the OpenAI computer go to the party?        Because it wanted to meet its AI friends and have a byte of fun!PreviousStreamlitNextChat loadersInstallation and SetupGetting Trubrics CredentialsUsageExamples1. With an LLM2. With a chat