Forums

Using langchain and langsmith on pythonanywhere

Hello,

I recently started developing a Django app that uses the Groq API and the LangChain framework. I noticed that I can easily use LangSmith for tracking my LLM runs, but I'm encountering an issue. PythonAnywhere won't allow me to use LangSmith for tracing LLM runs:

2024-11-03 21:09:42,455: Failed to get info from https://api.smith.langchain.com: LangSmithConnectionError('Connection error caused failure to GET /info in LangSmith API.  Please confirm your internet connection. ProxyError(MaxRetryError("HTTPSConnectionPool(host=\'api.smith.langchain.com\', port=443): Max retries exceeded with url: /info (Caused by ProxyError(\'Unable to connect to proxy\', OSError(\'Tunnel connection failed: 403 Forbidden\')))"))\nContent-Length: None\nAPI Key: [REDACTED]') 

Is there any solution for this? I understand that my free account might not have the required permissions for this functionality. I plan to upgrade to a paid account, but in the meantime, is there any way to test this on my free account?

Will upgrading to a paid account even fix this issue?

It looks like that domain isnt on the api whitelist. You can request it to be added

https://www.pythonanywhere.com/whitelist/