langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Question about setting LANGCHAIN_HANDLER environment variable

Open xuanxuanQAQ opened this issue 1 year ago • 1 comments

Hello, I came across a code snippet in the tutorial page on "Conversation Agent (for Chat Models)" that has left me a bit confused. The tutorial also mentioned a warning error like this: WARNING:root:Failed to default session, using empty session: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /sessions (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10a1767c0>: Failed to establish a new connection: [Errno 61] Connection refused')) Then i found the line of code in question is: os.environ["LANGCHAIN_HANDLER"] = "langchain" When I remove this line from the code, the program still seems to work without any errors. So why is this line of code exists. Thank you!

xuanxuanQAQ avatar Apr 24 '23 14:04 xuanxuanQAQ

I was wondering the same thing.

arminta7 avatar Apr 25 '23 23:04 arminta7

It appears to be for tracing

matthew-walters avatar Apr 26 '23 20:04 matthew-walters

I see, thank you.

xuanxuanQAQ avatar Apr 27 '23 14:04 xuanxuanQAQ

i have same issue please tell me where i can find and remove this line?

walt798 avatar Jan 06 '24 18:01 walt798