// Package pingchat Code generated by swaggo/swag. DO NOT EDIT
package pingchat

import "github.com/swaggo/swag"

const docTemplatepingchat = `{
    "schemes": {{ marshal .Schemes }},
    "swagger": "2.0",
    "info": {
        "description": "{{escape .Description}}",
        "title": "{{.Title}}",
        "termsOfService": "http://swagger.io/terms/",
        "contact": {},
        "version": "{{.Version}}"
    },
    "host": "{{.Host}}",
    "basePath": "{{.BasePath}}",
    "paths": {
        "/ecosystem/api/internal/pingchat/chat": {
            "post": {
                "description": "Chat with PingChat",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "PingChatService"
                ],
                "operationId": "Chat",
                "parameters": [
                    {
                        "description": "chat information",
                        "name": "chatInfo",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/pingchat.ChatInfo"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "ok",
                        "schema": {
                            "$ref": "#/definitions/pingchat.ChatResponse"
                        }
                    },
                    "400": {
                        "description": "error",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "error",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "default": {
                        "description": "other error",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "pingchat.ChatInfo": {
            "type": "object",
            "required": [
                "messages"
            ],
            "properties": {
                "domain": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "enum": [
                            "tidb",
                            "tidbcloud",
                            "asktug",
                            "blog",
                            "community",
                            "knowledge-base-cn",
                            "kb"
                        ]
                    }
                },
                "messages": {
                    "description": "https://pkg.go.dev/gopkg.in/bluesuncorp/validator.v9#hdr-Dive",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/pingchat.ChatMessage"
                    }
                }
            }
        },
        "pingchat.ChatMessage": {
            "type": "object",
            "required": [
                "content",
                "role"
            ],
            "properties": {
                "content": {
                    "description": "Dialogue content",
                    "type": "string"
                },
                "role": {
                    "description": "User's input as \"user\", AI assistant's reply as \"assistant\", see https://github.com/gin-gonic/gin/issues/3234.",
                    "type": "string",
                    "enum": [
                        "user",
                        "assistant"
                    ]
                }
            }
        },
        "pingchat.ChatResponse": {
            "type": "object",
            "properties": {
                "content": {
                    "type": "string"
                },
                "links": {
                    "description": "Reference Document Links",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/pingchat.Link"
                    }
                }
            }
        },
        "pingchat.Link": {
            "type": "object",
            "properties": {
                "link": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                }
            }
        }
    }
}`

// SwaggerInfopingchat holds exported Swagger Info so clients can modify it
var SwaggerInfopingchat = &swag.Spec{
	Version:          "1.0",
	Host:             "api.tidbcloud.com",
	BasePath:         "",
	Schemes:          []string{"https"},
	Title:            "PingChat Swagger API",
	Description:      "",
	InfoInstanceName: "pingchat",
	SwaggerTemplate:  docTemplatepingchat,
	LeftDelim:        "{{",
	RightDelim:       "}}",
}

func init() {
	swag.Register(SwaggerInfopingchat.InstanceName(), SwaggerInfopingchat)
}
