2023-04-15 16:39:07 -07:00
|
|
|
{
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
2023-05-18 13:50:21 -07:00
|
|
|
{
|
|
|
|
"name": "Python: Current File",
|
2024-08-14 03:06:41 -04:00
|
|
|
"type": "debugpy",
|
2023-05-18 13:50:21 -07:00
|
|
|
"request": "launch",
|
|
|
|
"program": "${file}",
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"justMyCode": false,
|
2024-08-14 03:06:41 -04:00
|
|
|
"cwd": "${fileDirname}",
|
2023-05-18 13:50:21 -07:00
|
|
|
"env": {
|
|
|
|
"OPENAI_API_BASE": "http://localhost:8080/v1",
|
|
|
|
"OPENAI_API_KEY": "abc"
|
|
|
|
}
|
|
|
|
},
|
2023-04-21 16:20:03 -07:00
|
|
|
{
|
2023-05-20 00:39:48 +10:00
|
|
|
"name": "Launch LocalAI API",
|
2023-04-21 16:20:03 -07:00
|
|
|
"type": "go",
|
|
|
|
"request": "launch",
|
|
|
|
"mode": "debug",
|
2024-08-14 03:06:41 -04:00
|
|
|
"program": "${workspaceRoot}",
|
|
|
|
"args": [],
|
2023-04-21 16:20:03 -07:00
|
|
|
"env": {
|
2024-08-14 03:06:41 -04:00
|
|
|
"LOCALAI_LOG_LEVEL": "debug",
|
|
|
|
"LOCALAI_P2P": "true",
|
|
|
|
"LOCALAI_FEDERATED": "true"
|
|
|
|
},
|
|
|
|
"buildFlags": ["-tags", "stablediffusion p2p tts", "-v"],
|
|
|
|
"envFile": "${workspaceFolder}/.env",
|
|
|
|
"cwd": "${workspaceRoot}"
|
2023-04-21 16:20:03 -07:00
|
|
|
}
|
2023-04-15 16:39:07 -07:00
|
|
|
]
|
2023-04-21 16:20:03 -07:00
|
|
|
}
|