I'm currently working on LLM evaluation using Trulens and Azure openai and encountering some issues with the code. Here's the relevant portion of my code:
However, this results in the error:(in the chain_recorder part)
TypeError: Object of type 'OpenAI' is not JSON serializable I'm using Python 3.10.11 and have also tested with Python 3.9. The relevant package versions are as follows:
I'm currently working on LLM evaluation using Trulens and Azure openai and encountering some issues with the code. Here's the relevant portion of my code:
When attempting to apply the Trulens recorder with the following code:
I also tried applying TruChain with an llm Langchain chain:
However, this results in the error:(in the chain_recorder part)
TypeError: Object of type 'OpenAI' is not JSON serializable
I'm using Python 3.10.11 and have also tested with Python 3.9. The relevant package versions are as follows:langchain==0.1.0 langchain-community==0.0.9 langchain-core==0.1.7 langchainhub==0.1.14 trulens-eval==0.18.1