Closed Andymendez100 closed 2 months ago
Nevermind, I was able to fix the issue. Apparently, using localhost causes an error. The following update fixed it for me:
const client = new PrivategptApiClient({
environment: "http://127.0.0.1:8001",
});
I am experiencing an error when using the node SDK to connect to my PrivateGPT FastAPI server. The health check endpoint is failing with the error: _PrivategptApiError: fetch failed.
Error Details:
Copy code
Code to Check Health:
Steps to Reproduce:
Expected Behavior: The command should successfully return the health status of the client without any errors.
Actual Behavior: The command fails with _PrivategptApiError: fetch failed, and the statusCode and body are undefined.
Environment:
PrivateGPT SDK Version: 0.1.2 Operating System: Windows 10 Node.js Version: 20.15.0 PrivateGPT Version: v0.5.0 PrivateGPT running with ollama