model

package
v0.0.0-...-a41f703 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* AI model Service Restful API * * This is an ai model service * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

Index

Constants

View Source
const (
	RESPONSE_OK = "OK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AIGCImageCheckData

type AIGCImageCheckData struct {
	RequestId    string                 `json:"request_id"`
	Images       []string               `json:"images"`
	CostTime     float64                `json:"cost_time"`
	CheckResults []AIGCImageCheckResult `json:"check_results"`
}

type AIGCImageCheckResponse

type AIGCImageCheckResponse struct {
	RequestId string             `json:"request_id,omitempty"`
	Code      string             `json:"code,omitempty"`
	Message   string             `json:"message,omitempty"`
	Data      AIGCImageCheckData `json:"data,omitempty"`
}

func NewAIGCImageCheckResponse

func NewAIGCImageCheckResponse() *AIGCImageCheckResponse

type AIGCImageCheckResult

type AIGCImageCheckResult struct {
	Code    int    `json:"code"`
	Frontal bool   `json:"frontal"`
	Message string `json:"message"`
	Url     string `json:"url"`
}

type AIGCImageCreateData

type AIGCImageCreateData struct {
	Image    string  `json:"image"`
	CostTime float64 `json:"cost_time"`
}

type AIGCImageCreateResponse

type AIGCImageCreateResponse struct {
	RequestId string              `json:"request_id,omitempty"`
	Code      string              `json:"code,omitempty"`
	Message   string              `json:"message,omitempty"`
	Data      AIGCImageCreateData `json:"data,omitempty"`
}

func NewAIGCImageCreateResponse

func NewAIGCImageCreateResponse() *AIGCImageCreateResponse

type AIGCImageTrainData

type AIGCImageTrainData struct {
	JobId   int32  `json:"job_id"`
	ModelId string `json:"model_id"`
}

type AIGCImageTrainResponse

type AIGCImageTrainResponse struct {
	RequestId string             `json:"request_id,omitempty"`
	Code      string             `json:"code,omitempty"`
	Message   string             `json:"message,omitempty"`
	Data      AIGCImageTrainData `json:"data,omitempty"`
}

func NewAIGCImageTrainResponse

func NewAIGCImageTrainResponse() *AIGCImageTrainResponse

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the swagger operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type AiCreationRequest

type AiCreationRequest struct {
	Action    string                 `json:"action"`
	Content   string                 `json:"content"`
	ModelName string                 `json:"model_name,omitempty"`
	Configure map[string]interface{} `json:"configure,omitempty"`
}

type AigcCheckRequest

type AigcCheckRequest struct {
	Action    string                 `json:"action"`
	Images    []string               `json:"images"`
	ModelName string                 `json:"model_name,omitempty"`
	Configure map[string]interface{} `json:"configure,omitempty"`
}

type AigcCreatRequest

type AigcCreatRequest struct {
	Action        string                 `json:"action"`
	ModelId       string                 `json:"model_id"`
	ModelIds      []string               `json:"model_ids"`
	ModelName     string                 `json:"model_name,omitempty"`
	TemplateImage string                 `json:"template_image,omitempty"`
	Configure     map[string]interface{} `json:"configure,omitempty"`
}

type AigcTrainRequest

type AigcTrainRequest struct {
	Action    string                 `json:"action"`
	Images    []string               `json:"images"`
	ModelName string                 `json:"model_name,omitempty"`
	Configure map[string]interface{} `json:"configure,omitempty"`
}

type AsyncJobData

type AsyncJobData struct {
	Job AsyncJobResult `json:"job"`
}

type AsyncJobResponse

type AsyncJobResponse struct {
	RequestId string       `json:"request_id,omitempty"`
	Code      string       `json:"code,omitempty"`
	Message   string       `json:"message,omitempty"`
	Data      AsyncJobData `json:"data,omitempty"`
}

func NewAsyncJobResponse

func NewAsyncJobResponse() *AsyncJobResponse

type AsyncJobResult

type AsyncJobResult struct {
	State   int    `json:"state"`
	AppId   string `json:"app_id"`
	Message string `json:"message"`
	Result  string `json:"result"`
}

type BatchVideoRequest

type BatchVideoRequest struct {
	Action    string                 `json:"action"`
	Videos    []VideoMeta            `json:"videos"`
	ModelName string                 `json:"model_name,omitempty"`
	Configure map[string]interface{} `json:"configure,omitempty"`
}

type ChatCompletionChoice

type ChatCompletionChoice struct {
	Index        int    `json:"index"`
	Text         string `json:"text"`
	FinishReason string `json:"finish_reason"`
}

type ChatCompletionResponse

type ChatCompletionResponse struct {
	Id      string                 `json:"id"`
	Object  string                 `json:"object"`
	Created int                    `json:"created"`
	Model   string                 `json:"model"`
	Choices []ChatCompletionChoice `json:"choices"`
}

type ImageRequest

type ImageRequest struct {
	Action    string                 `json:"action"`
	Image     string                 `json:"image"`
	ModelName string                 `json:"model_name,omitempty"`
	Configure map[string]interface{} `json:"configure,omitempty"`
}

type ImageWithTextRequest

type ImageWithTextRequest struct {
	Action    string                 `json:"action"`
	Images    []string               `json:"images"`
	Text      string                 `json:"text,omitempty"`
	ModelName string                 `json:"model_name,omitempty"`
	Configure map[string]interface{} `json:"configure,omitempty"`
}

type LLMEvalJudgerResponse

type LLMEvalJudgerResponse struct {
	RequestId string                 `json:"request_id,omitempty"`
	Code      string                 `json:"code,omitempty"`
	Message   string                 `json:"message,omitempty"`
	Data      ChatCompletionResponse `json:"data,omitempty"`
}

func NewLLMEvalJudgerResponse

func NewLLMEvalJudgerResponse() *LLMEvalJudgerResponse

type LlmEvalJudgerRequest

type LlmEvalJudgerRequest struct {
	Action    string                         `json:"action"`
	ModelName string                         `json:"model_name,omitempty"`
	Model     string                         `json:"model"`
	Messages  []LlmEvalJudgerRequestMessages `json:"messages"`
}

type LlmEvalJudgerRequestMessages

type LlmEvalJudgerRequestMessages struct {
	Role    string `json:"role,omitempty"`
	Content string `json:"content,omitempty"`
}

type Response

type Response struct {
	RequestId string                 `json:"request_id,omitempty"`
	Code      string                 `json:"code,omitempty"`
	Message   string                 `json:"message,omitempty"`
	Data      map[string]interface{} `json:"data,omitempty"`
}

func NewResponse

func NewResponse() *Response

type TextRequest

type TextRequest struct {
	Action    string                 `json:"action"`
	Text      string                 `json:"text"`
	ModelName string                 `json:"model_name,omitempty"`
	Configure map[string]interface{} `json:"configure,omitempty"`
}

type VideoMeta

type VideoMeta struct {
	Url   string `json:"url"`
	Title string `json:"title,omitempty"`
}

type VideoRequest

type VideoRequest struct {
	Action     string                 `json:"action"`
	VideoUrl   string                 `json:"video_url"`
	VideoTitle string                 `json:"video_title,omitempty"`
	ModelName  string                 `json:"model_name,omitempty"`
	Text       string                 `json:"text,omitempty"`
	Images     []string               `json:"images,omitempty"`
	Configure  map[string]interface{} `json:"configure,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL