|
408 | 408 | }
|
409 | 409 | }
|
410 | 410 | }
|
| 411 | + }, |
| 412 | + "/api/v1/workspaces/{workspace_name}/system-prompt": { |
| 413 | + "get": { |
| 414 | + "tags": [ |
| 415 | + "CodeGate API", |
| 416 | + "Workspaces" |
| 417 | + ], |
| 418 | + "summary": "Get Workspace System Prompt", |
| 419 | + "description": "Get the system prompt for a workspace.", |
| 420 | + "operationId": "v1_get_workspace_system_prompt", |
| 421 | + "parameters": [ |
| 422 | + { |
| 423 | + "name": "workspace_name", |
| 424 | + "in": "path", |
| 425 | + "required": true, |
| 426 | + "schema": { |
| 427 | + "type": "string", |
| 428 | + "title": "Workspace Name" |
| 429 | + } |
| 430 | + } |
| 431 | + ], |
| 432 | + "responses": { |
| 433 | + "200": { |
| 434 | + "description": "Successful Response", |
| 435 | + "content": { |
| 436 | + "application/json": { |
| 437 | + "schema": { |
| 438 | + "$ref": "#/components/schemas/SystemPrompt" |
| 439 | + } |
| 440 | + } |
| 441 | + } |
| 442 | + }, |
| 443 | + "422": { |
| 444 | + "description": "Validation Error", |
| 445 | + "content": { |
| 446 | + "application/json": { |
| 447 | + "schema": { |
| 448 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 449 | + } |
| 450 | + } |
| 451 | + } |
| 452 | + } |
| 453 | + } |
| 454 | + }, |
| 455 | + "put": { |
| 456 | + "tags": [ |
| 457 | + "CodeGate API", |
| 458 | + "Workspaces" |
| 459 | + ], |
| 460 | + "summary": "Set Workspace System Prompt", |
| 461 | + "operationId": "v1_set_workspace_system_prompt", |
| 462 | + "parameters": [ |
| 463 | + { |
| 464 | + "name": "workspace_name", |
| 465 | + "in": "path", |
| 466 | + "required": true, |
| 467 | + "schema": { |
| 468 | + "type": "string", |
| 469 | + "title": "Workspace Name" |
| 470 | + } |
| 471 | + } |
| 472 | + ], |
| 473 | + "requestBody": { |
| 474 | + "required": true, |
| 475 | + "content": { |
| 476 | + "application/json": { |
| 477 | + "schema": { |
| 478 | + "$ref": "#/components/schemas/SystemPrompt" |
| 479 | + } |
| 480 | + } |
| 481 | + } |
| 482 | + }, |
| 483 | + "responses": { |
| 484 | + "204": { |
| 485 | + "description": "Successful Response" |
| 486 | + }, |
| 487 | + "422": { |
| 488 | + "description": "Validation Error", |
| 489 | + "content": { |
| 490 | + "application/json": { |
| 491 | + "schema": { |
| 492 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 493 | + } |
| 494 | + } |
| 495 | + } |
| 496 | + } |
| 497 | + } |
| 498 | + }, |
| 499 | + "delete": { |
| 500 | + "tags": [ |
| 501 | + "CodeGate API", |
| 502 | + "Workspaces" |
| 503 | + ], |
| 504 | + "summary": "Delete Workspace System Prompt", |
| 505 | + "operationId": "v1_delete_workspace_system_prompt", |
| 506 | + "parameters": [ |
| 507 | + { |
| 508 | + "name": "workspace_name", |
| 509 | + "in": "path", |
| 510 | + "required": true, |
| 511 | + "schema": { |
| 512 | + "type": "string", |
| 513 | + "title": "Workspace Name" |
| 514 | + } |
| 515 | + } |
| 516 | + ], |
| 517 | + "responses": { |
| 518 | + "204": { |
| 519 | + "description": "Successful Response" |
| 520 | + }, |
| 521 | + "422": { |
| 522 | + "description": "Validation Error", |
| 523 | + "content": { |
| 524 | + "application/json": { |
| 525 | + "schema": { |
| 526 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 527 | + } |
| 528 | + } |
| 529 | + } |
| 530 | + } |
| 531 | + } |
| 532 | + } |
411 | 533 | }
|
412 | 534 | },
|
413 | 535 | "components": {
|
|
710 | 832 | "title": "QuestionAnswer",
|
711 | 833 | "description": "Represents a question and answer pair."
|
712 | 834 | },
|
| 835 | + "SystemPrompt": { |
| 836 | + "properties": { |
| 837 | + "prompt": { |
| 838 | + "type": "string", |
| 839 | + "title": "Prompt" |
| 840 | + } |
| 841 | + }, |
| 842 | + "type": "object", |
| 843 | + "required": [ |
| 844 | + "prompt" |
| 845 | + ], |
| 846 | + "title": "SystemPrompt" |
| 847 | + }, |
713 | 848 | "ValidationError": {
|
714 | 849 | "properties": {
|
715 | 850 | "loc": {
|
|
0 commit comments