|
511 | 511 | } |
512 | 512 | } |
513 | 513 | }, |
514 | | - "/api/v1/workspaces/{workspace_name}/system-prompt": { |
| 514 | + "/api/v1/workspaces/{workspace_name}/custom-instructions": { |
515 | 515 | "get": { |
516 | 516 | "tags": [ |
517 | 517 | "CodeGate API", |
518 | 518 | "Workspaces" |
519 | 519 | ], |
520 | | - "summary": "Get Workspace System Prompt", |
521 | | - "description": "Get the system prompt for a workspace.", |
522 | | - "operationId": "v1_get_workspace_system_prompt", |
| 520 | + "summary": "Get Workspace Custom Instructions", |
| 521 | + "description": "Get the custom instructions of a workspace.", |
| 522 | + "operationId": "v1_get_workspace_custom_instructions", |
523 | 523 | "parameters": [ |
524 | 524 | { |
525 | 525 | "name": "workspace_name", |
|
537 | 537 | "content": { |
538 | 538 | "application/json": { |
539 | 539 | "schema": { |
540 | | - "$ref": "#/components/schemas/SystemPrompt" |
| 540 | + "$ref": "#/components/schemas/CustomInstructions" |
541 | 541 | } |
542 | 542 | } |
543 | 543 | } |
|
559 | 559 | "CodeGate API", |
560 | 560 | "Workspaces" |
561 | 561 | ], |
562 | | - "summary": "Set Workspace System Prompt", |
563 | | - "operationId": "v1_set_workspace_system_prompt", |
| 562 | + "summary": "Set Workspace Custom Instructions", |
| 563 | + "operationId": "v1_set_workspace_custom_instructions", |
564 | 564 | "parameters": [ |
565 | 565 | { |
566 | 566 | "name": "workspace_name", |
|
577 | 577 | "content": { |
578 | 578 | "application/json": { |
579 | 579 | "schema": { |
580 | | - "$ref": "#/components/schemas/SystemPrompt" |
| 580 | + "$ref": "#/components/schemas/CustomInstructions" |
581 | 581 | } |
582 | 582 | } |
583 | 583 | } |
|
603 | 603 | "CodeGate API", |
604 | 604 | "Workspaces" |
605 | 605 | ], |
606 | | - "summary": "Delete Workspace System Prompt", |
607 | | - "operationId": "v1_delete_workspace_system_prompt", |
| 606 | + "summary": "Delete Workspace Custom Instructions", |
| 607 | + "operationId": "v1_delete_workspace_custom_instructions", |
608 | 608 | "parameters": [ |
609 | 609 | { |
610 | 610 | "name": "workspace_name", |
|
876 | 876 | ], |
877 | 877 | "title": "CreateOrRenameWorkspaceRequest" |
878 | 878 | }, |
| 879 | + "CustomInstructions": { |
| 880 | + "properties": { |
| 881 | + "prompt": { |
| 882 | + "type": "string", |
| 883 | + "title": "Prompt" |
| 884 | + } |
| 885 | + }, |
| 886 | + "type": "object", |
| 887 | + "required": [ |
| 888 | + "prompt" |
| 889 | + ], |
| 890 | + "title": "CustomInstructions" |
| 891 | + }, |
879 | 892 | "HTTPValidationError": { |
880 | 893 | "properties": { |
881 | 894 | "detail": { |
|
945 | 958 | "title": "QuestionAnswer", |
946 | 959 | "description": "Represents a question and answer pair." |
947 | 960 | }, |
948 | | - "SystemPrompt": { |
949 | | - "properties": { |
950 | | - "prompt": { |
951 | | - "type": "string", |
952 | | - "title": "Prompt" |
953 | | - } |
954 | | - }, |
955 | | - "type": "object", |
956 | | - "required": [ |
957 | | - "prompt" |
958 | | - ], |
959 | | - "title": "SystemPrompt" |
960 | | - }, |
961 | 961 | "ValidationError": { |
962 | 962 | "properties": { |
963 | 963 | "loc": { |
|
0 commit comments