Diagrams: Flowcharts & Mindmaps
Diagrams: Flowcharts & Mindmaps ยท GPT ์์
GPT Companion (gpt2 with BAND)
POST /api/gpt2/createGraphDiagramCreate graph diagramPOST /api/gpt2/createMindmapDiagramCreate mindmap diagramPOST /api/gpt2/createEntityRelationshipDiagramCreate entity-relationship diagramPOST /api/gpt2/createSequenceDiagramCreate sequence diagramPOST /api/gpt2/createPieChartDiagramCreate pie chart diagramPOST /api/gpt2/createTimelineDiagramCreate timeline diagramPOST /api/gpt2/createBandDiagramCreate BAND diagramPOST /api/gpt2/createClassDiagramCreate class diagramPOST /api/gpt2/getDiagramInstructionsGet syntax instructions for diagram type (includes BAND)
์๋ณธ API ์คํค๋ง
{
"openapi": "3.1.0",
"info": {
"title": "GPT Companion (gpt2 with BAND)",
"version": "1.0"
},
"servers": [
{
"url": "https://blocksandarrows.com",
"description": "gpt2 server with BAND diagram support"
}
],
"components": {
"schemas": {},
"parameters": {}
},
"paths": {
"/api/gpt2/createGraphDiagram": {
"post": {
"summary": "Create graph diagram",
"operationId": "Diagrams_CreateGraph",
"x-openai-isConsequential": false,
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"diagramString": {
"type": "string",
"description": "The string for the chart rendering"
},
"title": {
"type": "string",
"description": "The name of the document in which the diagram will be placed"
},
"diagramColor": {
"type": "string",
"default": "rainbow"
},
"drawStyle": {
"type": "string",
"enum": [
"sketch",
"strict",
"code"
]
},
"diagramInfo": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"useCases": {
"type": "string"
},
"difficulty": {
"type": "string"
},
"industry": {
"type": "string"
},
"tools": {
"type": "string"
},
"category": {
"type": "string"
}
}
}
},
"required": [
"diagramString",
"title",
"diagramInfo"
]
}
}
}
},
"responses": {
"200": {
"description": "Diagram successfully rendered",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"interpretingTheAPIResponse": {
"type": "string",
"description": "How to reply to the user"
}
}
}
}
}
},
"401": {
"description": "Unauthorized user",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
}
},
"required": [
"errorMessage"
]
}
}
}
},
"422": {
"description": "Error while rendering the diagram",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
},
"diagramTypeGuides": {
"type": "string",
"description": "look at these guides related to the current chart type, and try to fix the error"
}
},
"required": [
"errorMessage",
"diagramTypeGuides"
]
}
}
}
}
}
}
},
"/api/gpt2/createMindmapDiagram": {
"post": {
"summary": "Create mindmap diagram",
"operationId": "Diagrams_CreateMindmap",
"x-openai-isConsequential": false,
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"diagramString": {
"type": "string",
"description": "The string for the chart rendering"
},
"title": {
"type": "string",
"description": "The name of the document in which the diagram will be placed"
},
"diagramColor": {
"type": "string",
"default": "rainbow"
},
"drawStyle": {
"type": "string",
"enum": [
"sketch",
"strict",
"code"
]
},
"diagramInfo": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"useCases": {
"type": "string"
},
"difficulty": {
"type": "string"
},
"industry": {
"type": "string"
},
"tools": {
"type": "string"
},
"category": {
"type": "string"
}
}
}
},
"required": [
"diagramString",
"title",
"diagramInfo"
]
}
}
}
},
"responses": {
"200": {
"description": "Diagram successfully rendered",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"interpretingTheAPIResponse": {
"type": "string",
"description": "How to reply to the user"
}
}
}
}
}
},
"401": {
"description": "Unauthorized user",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
}
},
"required": [
"errorMessage"
]
}
}
}
},
"422": {
"description": "Error while rendering the diagram",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
},
"diagramTypeGuides": {
"type": "string",
"description": "look at these guides related to the current chart type, and try to fix the error"
}
},
"required": [
"errorMessage",
"diagramTypeGuides"
]
}
}
}
}
}
}
},
"/api/gpt2/createEntityRelationshipDiagram": {
"post": {
"summary": "Create entity-relationship diagram",
"operationId": "Diagrams_CreateEntity",
"x-openai-isConsequential": false,
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"diagramString": {
"type": "string",
"description": "The string for the chart rendering"
},
"title": {
"type": "string",
"description": "The name of the document in which the diagram will be placed"
},
"diagramColor": {
"type": "string",
"default": "rainbow"
},
"drawStyle": {
"type": "string",
"enum": [
"sketch",
"strict",
"code"
]
},
"diagramInfo": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"useCases": {
"type": "string"
},
"difficulty": {
"type": "string"
},
"industry": {
"type": "string"
},
"tools": {
"type": "string"
},
"category": {
"type": "string"
}
}
}
},
"required": [
"diagramString",
"title",
"diagramInfo"
]
}
}
}
},
"responses": {
"200": {
"description": "Diagram successfully rendered",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"interpretingTheAPIResponse": {
"type": "string",
"description": "How to reply to the user"
}
}
}
}
}
},
"401": {
"description": "Unauthorized user",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
}
},
"required": [
"errorMessage"
]
}
}
}
},
"422": {
"description": "Error while rendering the diagram",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
},
"diagramTypeGuides": {
"type": "string",
"description": "look at these guides related to the current chart type, and try to fix the error"
}
},
"required": [
"errorMessage",
"diagramTypeGuides"
]
}
}
}
}
}
}
},
"/api/gpt2/createSequenceDiagram": {
"post": {
"summary": "Create sequence diagram",
"operationId": "Diagrams_CreateSequence",
"x-openai-isConsequential": false,
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"diagramString": {
"type": "string",
"description": "The string for the chart rendering"
},
"title": {
"type": "string",
"description": "The name of the document in which the diagram will be placed"
},
"diagramColor": {
"type": "string",
"default": "rainbow"
},
"drawStyle": {
"type": "string",
"enum": [
"sketch",
"strict",
"code"
]
},
"diagramInfo": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"useCases": {
"type": "string"
},
"difficulty": {
"type": "string"
},
"industry": {
"type": "string"
},
"tools": {
"type": "string"
},
"category": {
"type": "string"
}
}
}
},
"required": [
"diagramString",
"title",
"diagramInfo"
]
}
}
}
},
"responses": {
"200": {
"description": "Diagram successfully rendered",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"interpretingTheAPIResponse": {
"type": "string",
"description": "How to reply to the user"
}
}
}
}
}
},
"401": {
"description": "Unauthorized user",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
}
},
"required": [
"errorMessage"
]
}
}
}
},
"422": {
"description": "Error while rendering the diagram",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
},
"diagramTypeGuides": {
"type": "string",
"description": "look at these guides related to the current chart type, and try to fix the error"
}
},
"required": [
"errorMessage",
"diagramTypeGuides"
]
}
}
}
}
}
}
},
"/api/gpt2/createPieChartDiagram": {
"post": {
"summary": "Create pie chart diagram",
"operationId": "Diagrams_CreatePieChart",
"x-openai-isConsequential": false,
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"diagramString": {
"type": "string",
"description": "The string for the chart rendering"
},
"title": {
"type": "string",
"description": "The name of the document in which the diagram will be placed"
},
"diagramColor": {
"type": "string",
"default": "rainbow"
},
"drawStyle": {
"type": "string",
"enum": [
"sketch",
"strict",
"code"
]
},
"diagramInfo": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"useCases": {
"type": "string"
},
"difficulty": {
"type": "string"
},
"industry": {
"type": "string"
},
"tools": {
"type": "string"
},
"category": {
"type": "string"
}
}
}
},
"required": [
"diagramString",
"title",
"diagramInfo"
]
}
}
}
},
"responses": {
"200": {
"description": "Diagram successfully rendered",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"interpretingTheAPIResponse": {
"type": "string",
"description": "How to reply to the user"
}
}
}
}
}
},
"401": {
"description": "Unauthorized user",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
}
},
"required": [
"errorMessage"
]
}
}
}
},
"422": {
"description": "Error while rendering the diagram",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
},
"diagramTypeGuides": {
"type": "string",
"description": "look at these guides related to the current chart type, and try to fix the error"
}
},
"required": [
"errorMessage",
"diagramTypeGuides"
]
}
}
}
}
}
}
},
"/api/gpt2/createTimelineDiagram": {
"post": {
"summary": "Create timeline diagram",
"operationId": "Diagrams_CreateTimeline",
"x-openai-isConsequential": false,
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"diagramString": {
"type": "string",
"description": "The string for the chart rendering"
},
"title": {
"type": "string",
"description": "The name of the document in which the diagram will be placed"
},
"diagramColor": {
"type": "string",
"default": "rainbow"
},
"drawStyle": {
"type": "string",
"enum": [
"sketch",
"strict",
"code"
]
},
"diagramInfo": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"useCases": {
"type": "string"
},
"difficulty": {
"type": "string"
},
"industry": {
"type": "string"
},
"tools": {
"type": "string"
},
"category": {
"type": "string"
}
}
}
},
"required": [
"diagramString",
"title",
"diagramInfo"
]
}
}
}
},
"responses": {
"200": {
"description": "Diagram successfully rendered",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"interpretingTheAPIResponse": {
"type": "string",
"description": "How to reply to the user"
}
}
}
}
}
},
"401": {
"description": "Unauthorized user",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
}
},
"required": [
"errorMessage"
]
}
}
}
},
"422": {
"description": "Error while rendering the diagram",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
},
"diagramTypeGuides": {
"type": "string",
"description": "look at these guides related to the current chart type, and try to fix the error"
}
},
"required": [
"errorMessage",
"diagramTypeGuides"
]
}
}
}
},
"504": {
"description": "timeout",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
},
"diagramTypeGuides": {
"type": "string",
"description": "look at these guides related to the current chart type, and try to fix the error"
}
},
"required": [
"errorMessage",
"diagramTypeGuides"
]
}
}
}
}
}
}
},
"/api/gpt2/createBandDiagram": {
"post": {
"summary": "Create BAND diagram",
"operationId": "Diagrams_CreateBand",
"x-openai-isConsequential": false,
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"diagramString": {
"type": "string",
"description": "The BAND code string for the diagram rendering"
},
"title": {
"type": "string",
"description": "The name of the document in which the diagram will be placed"
},
"diagramColor": {
"type": "string",
"default": "rainbow"
},
"drawStyle": {
"type": "string",
"enum": [
"sketch",
"strict",
"code"
]
},
"diagramInfo": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"useCases": {
"type": "string"
},
"difficulty": {
"type": "string"
},
"industry": {
"type": "string"
},
"tools": {
"type": "string"
},
"category": {
"type": "string"
}
}
}
},
"required": [
"diagramString",
"title",
"diagramInfo"
]
}
}
}
},
"responses": {
"200": {
"description": "Diagram successfully rendered",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"interpretingTheAPIResponse": {
"type": "string",
"description": "How to reply to the user"
}
}
}
}
}
},
"401": {
"description": "Unauthorized user",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
}
},
"required": [
"errorMessage"
]
}
}
}
},
"422": {
"description": "Error while rendering the diagram",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
},
"diagramTypeGuides": {
"type": "string",
"description": "look at these guides related to the current chart type, and try to fix the error"
}
},
"required": [
"errorMessage",
"diagramTypeGuides"
]
}
}
}
}
}
}
},
"/api/gpt2/createClassDiagram": {
"post": {
"summary": "Create class diagram",
"operationId": "Diagrams_CreateClass",
"x-openai-isConsequential": false,
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"diagramString": {
"type": "string",
"description": "The string for the chart rendering"
},
"title": {
"type": "string",
"description": "The name of the document in which the diagram will be placed"
},
"diagramColor": {
"type": "string",
"default": "rainbow"
},
"drawStyle": {
"type": "string",
"enum": [
"sketch",
"strict",
"code"
]
},
"diagramInfo": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"useCases": {
"type": "string"
},
"difficulty": {
"type": "string"
},
"industry": {
"type": "string"
},
"tools": {
"type": "string"
},
"category": {
"type": "string"
}
}
}
},
"required": [
"diagramString",
"title",
"diagramInfo"
]
}
}
}
},
"responses": {
"200": {
"description": "Diagram successfully rendered",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"interpretingTheAPIResponse": {
"type": "string",
"description": "How to reply to the user"
}
}
}
}
}
},
"422": {
"description": "Error while rendering the diagram",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"errorMessage": {
"type": "string"
},
"diagramTypeGuides": {
"type": "string",
"description": "look at these guides related to the current chart type, and try to fix the error"
}
},
"required": [
"errorMessage",
"diagramTypeGuides"
]
}
}
}
}
}
}
},
"/api/gpt2/getDiagramInstructions": {
"post": {
"summary": "Get syntax instructions for diagram type (includes BAND)",
"operationId": "Diagrams_GetDiagramInstructionsGpt2",
"x-openai-isConsequential": false,
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"graph",
"class",
"sequence",
"mindmap",
"timeline",
"entity-relationship",
"pie-chart",
"band"
],
"description": "Type of the diagram (includes band)",
"example": "band"
}
},
"required": [
"type"
]
}
}
}
},
"responses": {
"200": {
"description": "Syntax instructions for the diagram type",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"instructions": {
"type": "string",
"description": "Detailed syntax instructions and examples for creating this type of diagram"
}
},
"required": [
"instructions"
]
}
}
}
}
}
}
}
},
"webhooks": {}
}