2023-04-15 23:39:07 +00:00
|
|
|
{
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
2023-05-18 20:50:21 +00:00
|
|
|
{
|
|
|
|
"name": "Python: Current File",
|
2024-08-14 07:06:41 +00:00
|
|
|
"type": "debugpy",
|
2023-05-18 20:50:21 +00:00
|
|
|
"request": "launch",
|
|
|
|
"program": "${file}",
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"justMyCode": false,
|
2024-08-14 07:06:41 +00:00
|
|
|
"cwd": "${fileDirname}",
|
2023-05-18 20:50:21 +00:00
|
|
|
"env": {
|
|
|
|
"OPENAI_API_BASE": "http://localhost:8080/v1",
|
|
|
|
"OPENAI_API_KEY": "abc"
|
|
|
|
}
|
|
|
|
},
|
2023-04-21 23:20:03 +00:00
|
|
|
{
|
2023-05-19 14:39:48 +00:00
|
|
|
"name": "Launch LocalAI API",
|
2023-04-21 23:20:03 +00:00
|
|
|
"type": "go",
|
|
|
|
"request": "launch",
|
|
|
|
"mode": "debug",
|
2024-08-14 07:06:41 +00:00
|
|
|
"program": "${workspaceRoot}",
|
|
|
|
"args": [],
|
2023-04-21 23:20:03 +00:00
|
|
|
"env": {
|
2024-08-14 07:06:41 +00: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 23:20:03 +00:00
|
|
|
}
|
2023-04-15 23:39:07 +00:00
|
|
|
]
|
2023-04-21 23:20:03 +00:00
|
|
|
}
|