How to debug and modify codes #4644
Replies: 3 comments 5 replies
-
Hi @mlin01. i just try to put a breakpoint on fetchOpenAIModels method on ModelServices.js file. The flow was paused on breakpoint. Maybe you miss something during prepare you enviroment to debug. How i did it:
|
Beta Was this translation helpful? Give feedback.
-
Hi @alvieirajr , I did a bran new clone, the error still happened. Is there due to windows update? Please advice. |
Beta Was this translation helpful? Give feedback.
-
On my librechat\.vscode folder:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch LibreChat (debug)",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/api/server/index.js",
"env": {
"NODE_ENV": "production"
},
"console": "integratedTerminal"
}
]
}
on my .vscode folder on my root directory (The librechat is a subdirectory
inside my workspace):
{
"configurations": [
{
"type": "msedge",
"name": "ws://
127.0.0.1:9229/b2c3b450-38b1-425a-9ae9-c0136ba00bc2",
"request": "launch",
"url": "ws://127.0.0.1:9229/b2c3b450-38b1-425a-9ae9-c0136ba00bc2
"
}
]
}
Em sex., 15 de nov. de 2024 às 20:02, mlin01 ***@***.***>
escreveu:
… I got the compilation errors fixed. It was IP address changed by my ISP.
Now, I use this launh.json below to run, no break point was hitted. Can
you please share your launch.json?
Thank you very much.
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": ["<node_internals>/
*"], "program": "api/server/index.js", "outFiles": ["${workspaceFolder}/*
/*.js"],
"preLaunchTask": "npm: backend:dev"
}
],
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "npm: backend:dev",
"type": "npm",
"script": "backend:dev",
"group": "build",
"problemMatcher": [],
"detail": "Run npm script backend:dev"
}
]
}
}
—
Reply to this email directly, view it on GitHub
<#4644 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIYDROWWGIBMZZ5H2Y4F232AZ4QBAVCNFSM6AAAAABRHS3ST6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXGQ3TAMY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
We got LibreChat setup and runs perfect. What we want to do is modify codes so that it will return a set of models to the user. Users are classified into different categories in our db. We think the code that we need to modify is in ModelService.js (let us know if that is the right place). The problem we have is that we set up the breakpoints in the file. No breakpoints were hit. We have used VS code to debug frontend or backend, no breakpoint hit.
Looking forward to hear from you.
Beta Was this translation helpful? Give feedback.
All reactions