Files
APIPark/module/ai-api/dto/output.go
T
2024-09-25 20:28:01 +08:00

36 lines
1.0 KiB
Go

package ai_api_dto
import (
"github.com/eolinker/go-common/auto"
)
type API struct {
Id string `json:"id"`
Name string `json:"name"`
Path string `json:"path"`
Description string `json:"description"`
Disable bool `json:"disable"`
AiPrompt *AiPrompt `json:"ai_prompt"`
AiModel *AiModel `json:"ai_model"`
Timeout int `json:"timeout"`
Retry int `json:"retry"`
}
type APIItem struct {
Id string `json:"id"`
Name string `json:"name"`
RequestPath string `json:"request_path"`
Description string `json:"description"`
Disable bool `json:"disable"`
Creator auto.Label `json:"creator" aolabel:"user"`
Updater auto.Label `json:"updater" aolabel:"user"`
CreateTime auto.TimeLabel `json:"create_time"`
UpdateTime auto.TimeLabel `json:"update_time"`
Model ModelItem `json:"model"`
}
type ModelItem struct {
Id string `json:"id"`
Logo string `json:"logo"`
}