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
- type AIGCImageCheckData
- type AIGCImageCheckResponse
- type AIGCImageCheckResult
- type AIGCImageCreateData
- type AIGCImageCreateResponse
- type AIGCImageTrainData
- type AIGCImageTrainResponse
- type APIResponse
- type AiCreationRequest
- type AigcCheckRequest
- type AigcCreatRequest
- type AigcTrainRequest
- type AsyncJobData
- type AsyncJobResponse
- type AsyncJobResult
- type BatchVideoRequest
- type ChatCompletionChoice
- type ChatCompletionResponse
- type ImageRequest
- type ImageWithTextRequest
- type LLMEvalJudgerResponse
- type LlmEvalJudgerRequest
- type LlmEvalJudgerRequestMessages
- type Response
- type TextRequest
- type VideoMeta
- type VideoRequest
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 AIGCImageCreateData ¶
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 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 AigcCheckRequest ¶
type AigcCreatRequest ¶
type AigcTrainRequest ¶
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 BatchVideoRequest ¶
type ChatCompletionChoice ¶
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 ImageWithTextRequest ¶
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 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 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"` }
Source Files ¶
- model_ai_creation_reuqest.go
- model_aigc_check_request.go
- model_aigc_create_request.go
- model_aigc_image_check_response.go
- model_aigc_image_create_response.go
- model_aigc_image_train_response.go
- model_aigc_train_request.go
- model_async_job_response.go
- model_batch_video_request.go
- model_image_request.go
- model_image_with_text_request.go
- model_llm_eval_judger_request.go
- model_llm_eval_judger_request_messages.go
- model_llm_eval_judger_response.go
- model_response.go
- model_text_request.go
- model_video_request.go
- response.go
Click to show internal directories.
Click to hide internal directories.