{
  "swagger": "2.0",
  "info": {
    "title": "api/service.proto",
    "version": "version not set"
  },
  "tags": [
    {
      "name": "ChatBotService"
    }
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {},
  "definitions": {
    "apiChatBotRsp": {
      "type": "object",
      "properties": {
        "session_id": {
          "type": "string"
        },
        "prompt": {
          "type": "string"
        },
        "completion": {
          "type": "string"
        },
        "code": {
          "type": "integer",
          "format": "int32"
        },
        "token_used": {
          "type": "integer",
          "format": "int32"
        },
        "prompt_version": {
          "type": "string"
        },
        "database": {
          "type": "string"
        },
        "duration": {
          "type": "string",
          "format": "int64"
        },
        "job_id": {
          "type": "string"
        },
        "base_resp": {
          "$ref": "#/definitions/baseBaseResp"
        }
      }
    },
    "apiGetAllPromptByAIModelResp": {
      "type": "object",
      "properties": {
        "prompts": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/apiPrompt"
          }
        },
        "base_resp": {
          "$ref": "#/definitions/baseBaseResp"
        }
      }
    },
    "apiGetLatestPromptResp": {
      "type": "object",
      "properties": {
        "prompt": {
          "$ref": "#/definitions/apiPrompt"
        },
        "base_resp": {
          "$ref": "#/definitions/baseBaseResp"
        }
      }
    },
    "apiPrompt": {
      "type": "object",
      "properties": {
        "ai_model": {
          "type": "string"
        },
        "deployment": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "content": {
          "type": "string"
        },
        "is_latest": {
          "type": "boolean"
        }
      }
    },
    "apiQueryCompletionResp": {
      "type": "object",
      "properties": {
        "completion": {
          "type": "string"
        },
        "status": {
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "type": "string"
        },
        "base_resp": {
          "$ref": "#/definitions/baseBaseResp"
        }
      }
    },
    "apiSavePromptResp": {
      "type": "object",
      "properties": {
        "base_resp": {
          "$ref": "#/definitions/baseBaseResp"
        }
      }
    },
    "baseBaseResp": {
      "type": "object",
      "properties": {
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "err_code": {
          "type": "string",
          "format": "int64"
        },
        "err_msg": {
          "type": "string"
        }
      }
    },
    "protobufAny": {
      "type": "object",
      "properties": {
        "@type": {
          "type": "string"
        }
      },
      "additionalProperties": {}
    },
    "rpcStatus": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/protobufAny"
          }
        }
      }
    }
  }
}
