Wonder-Core

Wonder-Core · Actions GPT

IP Check API

API for checking user's IP information.

  • GET /Gets information about a specified IP.
Schéma original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "IP Check API",
    "description": "API for checking user's IP information.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://ip-api.4eva.org",
      "description": "IP Check API server"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "checkIp",
        "summary": "Gets information about a specified IP.",
        "parameters": [
          {
            "in": "query",
            "name": "ip",
            "required": true,
            "description": "The IP address to check.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved IP information",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "asn": {
                      "type": "integer",
                      "description": "Autonomous System Number."
                    },
                    "asn_org": {
                      "type": "string",
                      "description": "Organization associated with the ASN."
                    },
                    "prefix_len": {
                      "type": "string",
                      "description": "The prefix length of the IP."
                    },
                    "country": {
                      "type": "string",
                      "description": "Country name."
                    },
                    "country_code": {
                      "type": "string",
                      "description": "Two-letter country code."
                    },
                    "region": {
                      "type": "string",
                      "description": "Region name."
                    },
                    "city": {
                      "type": "string",
                      "description": "City name."
                    },
                    "zip_code": {
                      "type": "string",
                      "description": "ZIP code."
                    },
                    "latitude": {
                      "type": "number",
                      "format": "double",
                      "description": "Latitude coordinate."
                    },
                    "longitude": {
                      "type": "number",
                      "format": "double",
                      "description": "Longitude coordinate."
                    },
                    "time_zone": {
                      "type": "string",
                      "description": "Time zone."
                    },
                    "cache": {
                      "type": "boolean",
                      "description": "Indicates if the response was from cache."
                    },
                    "ip": {
                      "type": "string",
                      "description": "The IP address."
                    },
                    "timestamp": {
                      "type": "integer",
                      "description": "Timestamp of the request."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Get the GPT behavior list and response/generate-image/analyze guidance document

  • GET /listsend the word count to obtain the conversation category list and basic behavior through this directory and follow basic behaviors, classify the each input type into the category (necessary conditions)
  • GET /behaviorAccept specific behavioral instructions from here, then strictly follow them to response/generate-image, and enter the list again to determine the user's conversation category while the conversation continues.
Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "version": "1.1.0",
    "title": "Get the GPT behavior list and response/generate-image/analyze guidance document"
  },
  "servers": [
    {
      "url": "https://searcher-api.4eva.org/wonder-core"
    }
  ],
  "paths": {
    "/list": {
      "get": {
        "summary": "send the word count to obtain the conversation category list and basic behavior through this directory and follow basic behaviors, classify the each input type into the category (necessary conditions)",
        "operationId": "List",
        "parameters": [
          {
            "name": "count",
            "in": "query",
            "description": "Send user input word count.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "YAML will return the conversation scene category, with \"basic behavior\" defining the response prompts and \"envs\" containing the category. Each output should adhere to the \"basic behavior\" rule after selecting the corresponding category.",
            "content": {
              "application/yaml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "basic behavior": {
                      "type": "array",
                      "description": "basic behaviors is an array and GPT should follow as prompts to process response."
                    },
                    "envs": {
                      "type": "array",
                      "description": "Multiple dialogue behavior categories are specified here."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/behavior": {
      "get": {
        "summary": "Accept specific behavioral instructions from here, then strictly follow them to response/generate-image, and enter the list again to determine the user's conversation category while the conversation continues.",
        "operationId": "Behavior",
        "parameters": [
          {
            "name": "envs",
            "in": "query",
            "description": "Request behavior guidance in YAML format via query, the category given by /wonder-core/list",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Here we will reply to the behavioral guidance in YAML format and should be followed strictly.",
            "content": {
              "application/yaml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "advanced behavior": {
                      "type": "array",
                      "description": "Advanced behavior as prompts, follow to better responses (Multiple entries in array format)"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}