Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit a563588

Browse files
Update OpenAPI to version generated from ref c9d4737 (#714)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c9d4737 commit a563588

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

api/openapi.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -511,15 +511,15 @@
511511
}
512512
}
513513
},
514-
"/api/v1/workspaces/{workspace_name}/system-prompt": {
514+
"/api/v1/workspaces/{workspace_name}/custom-instructions": {
515515
"get": {
516516
"tags": [
517517
"CodeGate API",
518518
"Workspaces"
519519
],
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",
523523
"parameters": [
524524
{
525525
"name": "workspace_name",
@@ -537,7 +537,7 @@
537537
"content": {
538538
"application/json": {
539539
"schema": {
540-
"$ref": "#/components/schemas/SystemPrompt"
540+
"$ref": "#/components/schemas/CustomInstructions"
541541
}
542542
}
543543
}
@@ -559,8 +559,8 @@
559559
"CodeGate API",
560560
"Workspaces"
561561
],
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",
564564
"parameters": [
565565
{
566566
"name": "workspace_name",
@@ -577,7 +577,7 @@
577577
"content": {
578578
"application/json": {
579579
"schema": {
580-
"$ref": "#/components/schemas/SystemPrompt"
580+
"$ref": "#/components/schemas/CustomInstructions"
581581
}
582582
}
583583
}
@@ -603,8 +603,8 @@
603603
"CodeGate API",
604604
"Workspaces"
605605
],
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",
608608
"parameters": [
609609
{
610610
"name": "workspace_name",
@@ -876,6 +876,19 @@
876876
],
877877
"title": "CreateOrRenameWorkspaceRequest"
878878
},
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+
},
879892
"HTTPValidationError": {
880893
"properties": {
881894
"detail": {
@@ -945,19 +958,6 @@
945958
"title": "QuestionAnswer",
946959
"description": "Represents a question and answer pair."
947960
},
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-
},
961961
"ValidationError": {
962962
"properties": {
963963
"loc": {

0 commit comments

Comments
 (0)