Doc Maker: PDFs, Resumes, PowerPoints, Excel

Doc Maker: PDFs, Resumes, PowerPoints, Excel · GPT 작업

Doc Maker GPT

A GPT that allows users to create documents.

  • POST /run_scriptExecute a Python script that generates files
원본 API 스키마
{
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "OpenAIFileRef": {
        "description": "File reference sent by ChatGPT in openaiFileIdRefs parameter.",
        "properties": {
          "download_link": {
            "description": "URL to fetch file (valid for 5 minutes)",
            "title": "Download Link",
            "type": "string"
          },
          "id": {
            "description": "Stable file identifier",
            "title": "Id",
            "type": "string"
          },
          "mime_type": {
            "description": "MIME type of the file",
            "title": "Mime Type",
            "type": "string"
          },
          "name": {
            "description": "Filename (auto-generated for DALL-E images)",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "id",
          "mime_type",
          "download_link"
        ],
        "title": "OpenAIFileRef",
        "type": "object"
      },
      "OpenAIFileResponse": {
        "description": "File returned to ChatGPT via openaiFileResponse parameter.",
        "properties": {
          "content": {
            "description": "Base64 encoded file contents",
            "title": "Content",
            "type": "string"
          },
          "mime_type": {
            "description": "MIME type of the file",
            "title": "Mime Type",
            "type": "string"
          },
          "name": {
            "description": "Filename visible to user",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "mime_type",
          "content"
        ],
        "title": "OpenAIFileResponse",
        "type": "object"
      },
      "RunScriptRequest": {
        "properties": {
          "instructions": {
            "description": "Instructions describing what the user wants and any context from the conversation",
            "title": "Instructions",
            "type": "string"
          },
          "openaiFileIdRefs": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/OpenAIFileRef"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Files from the conversation (e.g. user uploads, DALL-E images, Code Interpreter files). Up to 10 files supported.",
            "title": "Openaifileidrefs"
          },
          "script": {
            "description": "Python script to execute that generates files",
            "title": "Script",
            "type": "string"
          }
        },
        "required": [
          "script",
          "instructions"
        ],
        "title": "RunScriptRequest",
        "type": "object"
      },
      "RunScriptResponse": {
        "properties": {
          "download_urls": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Download Urls"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "handoff_link": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handoff Link"
          },
          "openaiFileResponse": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/OpenAIFileResponse"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Openaifileresponse"
          },
          "stderr": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stderr"
          },
          "stdout": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stdout"
          }
        },
        "title": "RunScriptResponse",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      }
    }
  },
  "info": {
    "description": "A GPT that allows users to create documents.",
    "title": "Doc Maker GPT",
    "version": "v1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/run_script": {
      "post": {
        "operationId": "run_script",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunScriptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunScriptResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Execute a Python script that generates files",
        "x-openai-isConsequential": false
      }
    }
  },
  "servers": [
    {
      "url": "https://gpt.docs.aidocmaker.com"
    }
  ]
}