mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
33
.vscode/launch.json
vendored
33
.vscode/launch.json
vendored
@@ -2,15 +2,11 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Docker Debug Frontend",
|
"name": "Frontend Debug (npm)",
|
||||||
|
"type": "node-terminal",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "chrome",
|
"command": "npm run dev",
|
||||||
"preLaunchTask": "docker-compose: debug:frontend",
|
"cwd": "${workspaceFolder}/frontend"
|
||||||
"url": "http://127.0.0.1:5173",
|
|
||||||
"webRoot": "${workspaceFolder}/frontend",
|
|
||||||
"skipFiles": [
|
|
||||||
"<node_internals>/**"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Flask Debugger",
|
"name": "Flask Debugger",
|
||||||
@@ -49,6 +45,27 @@
|
|||||||
"--pool=solo"
|
"--pool=solo"
|
||||||
],
|
],
|
||||||
"cwd": "${workspaceFolder}"
|
"cwd": "${workspaceFolder}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Dev Containers (Mongo + Redis)",
|
||||||
|
"type": "node-terminal",
|
||||||
|
"request": "launch",
|
||||||
|
"command": "docker compose -f deployment/docker-compose-dev.yaml up --build",
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"compounds": [
|
||||||
|
{
|
||||||
|
"name": "DocsGPT: Full Stack",
|
||||||
|
"configurations": [
|
||||||
|
"Frontend Debug (npm)",
|
||||||
|
"Flask Debugger",
|
||||||
|
"Celery Debugger"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "DocsGPT",
|
||||||
|
"order": 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
21
.vscode/tasks.json
vendored
21
.vscode/tasks.json
vendored
@@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"type": "docker-compose",
|
|
||||||
"label": "docker-compose: debug:frontend",
|
|
||||||
"dockerCompose": {
|
|
||||||
"up": {
|
|
||||||
"detached": true,
|
|
||||||
"services": [
|
|
||||||
"frontend"
|
|
||||||
],
|
|
||||||
"build": true
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"${workspaceFolder}/docker-compose.yaml"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1660,18 +1660,6 @@ class CreateAgent(Resource):
|
|||||||
"prompt_id",
|
"prompt_id",
|
||||||
"agent_type",
|
"agent_type",
|
||||||
]
|
]
|
||||||
# Require either source or sources (but not both)
|
|
||||||
|
|
||||||
if not data.get("source") and not data.get("sources"):
|
|
||||||
return make_response(
|
|
||||||
jsonify(
|
|
||||||
{
|
|
||||||
"success": False,
|
|
||||||
"message": "Either 'source' or 'sources' field is required for published agents",
|
|
||||||
}
|
|
||||||
),
|
|
||||||
400,
|
|
||||||
)
|
|
||||||
validate_fields = ["name", "description", "prompt_id", "agent_type"]
|
validate_fields = ["name", "description", "prompt_id", "agent_type"]
|
||||||
else:
|
else:
|
||||||
required_fields = ["name"]
|
required_fields = ["name"]
|
||||||
|
|||||||
Reference in New Issue
Block a user