Documentation
¶
Index ¶
- type CreateAIGCServiceRequest
- type CreateAIGCServiceResponse
- type CreateModelRequest
- type CreateModelResponse
- type CreateModelStreamRequest
- type CreateServiceProviderRequest
- type CreateServiceProviderResponse
- type DashboardResponse
- type DeleteAIGCServiceRequest
- type DeleteAIGCServiceResponse
- type DeleteModelRequest
- type DeleteModelResponse
- type DeleteServiceProviderRequest
- type DeleteServiceProviderResponse
- type ExportServiceRequest
- type ExportServiceResponse
- type GetAIGCServiceRequest
- type GetAIGCServiceResponse
- type GetAIGCServicesRequest
- type GetAIGCServicesResponse
- type GetEngineHealthRequest
- type GetEngineHealthResponse
- type GetEngineVersionRequest
- type GetEngineVersionResponse
- type GetModelListRequest
- type GetModelkeyRequest
- type GetModelkeyResponse
- type GetModelsRequest
- type GetModelsResponse
- type GetPluginInfoRequest
- type GetPluginInfoResponse
- type GetPluginInfoResponseData
- type GetPluginListResponse
- type GetProductInfoResponse
- type GetServiceProviderRequest
- type GetServiceProviderResponse
- type GetServiceProvidersRequest
- type GetServiceProvidersResponse
- type GetSeverHealthResponse
- type GetSupportModelRequest
- type GetSupportModelResponse
- type GetSupportModelResponseData
- type GetVersionResponse
- type GetVersionResponseData
- type ImportServiceRequest
- type ImportServiceResponse
- type LocalSupportModelData
- type Model
- type ModelStreamCancelRequest
- type ModelStreamCancelResponse
- type PluginDeleteRequest
- type PluginDeleteResponse
- type PluginLoadRequest
- type PluginLoadResponse
- type PluginStopRequest
- type PluginStopResponse
- type RagDeleteFileRequest
- type RagDeleteFileResponse
- type RagGetFileRequest
- type RagGetFileResponse
- type RagGetFilesResponse
- type RagRetrievalRequest
- type RagRetrievalResponse
- type RagRetrievalResponseData
- type RagUploadFileResponse
- type RagUploadFileResponseData
- type RecommendModelData
- type RecommendModelResponse
- type SelectDefaultModelRequest
- type Service
- type ServiceEntry
- type ServiceProvider
- type ServiceProviderEntry
- type ServiceProviderInfo
- type ServiceWithModels
- type SetDefaultModelRequest
- type SupportModel
- type UpdateAIGCServiceRequest
- type UpdateAIGCServiceResponse
- type UpdateAvailableResponse
- type UpdateAvailableResponseData
- type UpdateResponse
- type UpdateServiceProviderRequest
- type UpdateServiceProviderResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAIGCServiceRequest ¶
type CreateAIGCServiceRequest struct {
ServiceName string `json:"service_name" validate:"required,supported_service"`
ServiceSource string `json:"service_source" validate:"omitempty,supported_service_source"`
ApiFlavor string `json:"api_flavor" validate:"omitempty,supported_flavor"`
ProviderName string `json:"provider_name" validate:"omitempty,max=200"`
Desc string `json:"desc" validate:"omitempty,max=500"`
Method string `json:"method" validate:"omitempty,supported_http_method"`
Url string `json:"url" validate:"omitempty,url"`
AuthType string `json:"auth_type" validate:"omitempty,supported_auth_type"`
AuthKey string `json:"auth_key" validate:"required_with_auth"`
ExtraHeaders string `json:"extra_headers" validate:"omitempty,json_format"`
ExtraJsonBody string `json:"extra_json_body" validate:"omitempty,json_format"`
Properties string `json:"properties" validate:"omitempty,json_format"`
SkipModelFlag bool `json:"skip_model"`
ModelName string `json:"model_name" validate:"omitempty,min=1,max=200"`
}
func (*CreateAIGCServiceRequest) SetDefaults ¶ added in v0.6.0
func (r *CreateAIGCServiceRequest) SetDefaults()
SetDefaults implements RequestDefaultSetter interface
type CreateModelRequest ¶
type CreateModelRequest struct {
ProviderName string `json:"provider_name" validate:"required"`
ModelName string `json:"model_name" validate:"required"`
ServiceName string `json:"service_name" validate:"required"`
ServiceSource string `json:"service_source" validate:"required"`
Size string `json:"size"`
}
type CreateModelResponse ¶
type CreateServiceProviderRequest ¶
type CreateServiceProviderRequest struct {
ServiceName string `json:"service_name" validate:"required"`
ServiceSource string `json:"service_source" validate:"required"`
ApiFlavor string `json:"api_flavor" validate:"required"`
ProviderName string `json:"provider_name" validate:"required"`
Desc string `json:"desc"`
Method string `json:"method"`
Url string `json:"url"`
AuthType string `json:"auth_type"`
AuthKey string `json:"auth_key"`
Models []string `json:"models"`
ExtraHeaders string `json:"extra_headers"`
ExtraJsonBody string `json:"extra_json_body"`
Properties string `json:"properties"`
}
type DashboardResponse ¶
type DeleteAIGCServiceRequest ¶
type DeleteAIGCServiceRequest struct{}
type DeleteAIGCServiceResponse ¶
type DeleteAIGCServiceResponse struct{}
type DeleteModelRequest ¶
type DeleteModelResponse ¶
type DeleteServiceProviderRequest ¶
type DeleteServiceProviderRequest struct {
ProviderName string `json:"provider_name" validate:"required"`
}
type ExportServiceRequest ¶
type ExportServiceResponse ¶
type ExportServiceResponse struct {
Version string `json:"version"`
Services map[string]ServiceEntry `json:"services"`
ServiceProviders map[string]ServiceProviderEntry `json:"service_providers"`
}
type GetAIGCServiceRequest ¶
type GetAIGCServiceRequest struct{}
type GetAIGCServiceResponse ¶
type GetAIGCServiceResponse struct{}
type GetAIGCServicesRequest ¶
type GetAIGCServicesRequest struct {
ServiceName string `json:"service_name,omitempty" validate:"omitempty,supported_service"`
}
type GetAIGCServicesResponse ¶
type GetEngineHealthRequest ¶ added in v0.7.0
type GetEngineHealthRequest struct {
EngineName string `form:"engine_name"`
}
type GetEngineHealthResponse ¶ added in v0.7.0
type GetEngineVersionRequest ¶ added in v0.7.0
type GetEngineVersionRequest struct {
EngineName string `form:"engine_name"`
}
type GetEngineVersionResponse ¶ added in v0.7.0
type GetModelListRequest ¶
type GetModelkeyRequest ¶
type GetModelkeyResponse ¶
type GetModelsRequest ¶
type GetModelsResponse ¶
type GetPluginInfoRequest ¶ added in v0.7.1
type GetPluginInfoRequest struct {
Name string `json:"name"`
}
type GetPluginInfoResponse ¶ added in v0.7.1
type GetPluginInfoResponse struct {
bcode.Bcode
Data GetPluginInfoResponseData `json:"data"`
}
type GetPluginInfoResponseData ¶ added in v0.7.1
type GetPluginListResponse ¶ added in v0.7.1
type GetPluginListResponse struct {
bcode.Bcode
Data []GetPluginInfoResponseData `json:"data"`
}
type GetProductInfoResponse ¶
type GetServiceProviderResponse ¶
type GetServiceProviderResponse struct {
bcode.Bcode
Data ServiceProvider `json:"data"`
}
type GetServiceProvidersResponse ¶
type GetServiceProvidersResponse struct {
bcode.Bcode
Data []ServiceProvider `json:"data"`
}
type GetSeverHealthResponse ¶ added in v0.7.0
type GetSupportModelRequest ¶
type GetSupportModelRequest struct {
Flavor string `form:"flavor"`
ServiceSource string `form:"service_source"`
ServiceName string `form:"service_name"`
PageSize int `form:"page_size"`
Page int `form:"page"`
SearchName string `form:"search_name"`
}
control panel model list
type GetSupportModelResponse ¶
type GetSupportModelResponse struct {
bcode.Bcode
Data GetSupportModelResponseData `json:"data"`
}
type GetSupportModelResponseData ¶
type GetSupportModelResponseData struct {
Data []RecommendModelData `json:"data"`
Page int `json:"page"`
PageSize int `json:"page_size"`
Total int `json:"total"`
TotalPage int `json:"total_page"`
}
control panel paginated model list
type GetVersionResponse ¶ added in v0.7.0
type GetVersionResponse struct {
bcode.Bcode
Data GetVersionResponseData `json:"data"`
}
type GetVersionResponseData ¶ added in v0.7.0
type ImportServiceRequest ¶
type ImportServiceRequest struct {
Version string `json:"version"`
Services map[string]ServiceEntry `json:"services"`
ServiceProviders map[string]ServiceProviderEntry `json:"service_providers"`
}
func (*ImportServiceRequest) SetDefaults ¶ added in v0.6.0
func (r *ImportServiceRequest) SetDefaults()
SetDefaults implements RequestDefaultSetter interface
type ImportServiceResponse ¶
type LocalSupportModelData ¶
type Model ¶
type Model struct {
ModelName string `json:"model_name"`
Avatar string `json:"avatar"`
ProviderName string `json:"provider_name"`
Status string `json:"status"`
ServiceName string `json:"service_name"`
ServiceSource string `json:"service_source"`
IsDefault bool `json:"is_default"`
CreatedAt types.LocalTime `json:"created_at"`
UpdatedAt types.LocalTime `json:"updated_at"`
}
type ModelStreamCancelRequest ¶
type ModelStreamCancelRequest struct {
ModelName string `json:"model_name" validate:"required"`
}
type PluginDeleteRequest ¶ added in v0.7.1
type PluginDeleteRequest struct {
Name string `json:"name"`
}
type PluginDeleteResponse ¶ added in v0.7.1
type PluginLoadRequest ¶ added in v0.7.1
type PluginLoadRequest struct {
Name string `json:"name"`
}
type PluginLoadResponse ¶ added in v0.7.1
type PluginStopRequest ¶ added in v0.7.1
type PluginStopRequest struct {
Name string `json:"name"`
}
type PluginStopResponse ¶ added in v0.7.1
type RagDeleteFileRequest ¶ added in v0.6.0
type RagDeleteFileRequest struct {
FileId string `form:"file_id" validate:"required"`
}
type RagDeleteFileResponse ¶ added in v0.6.0
type RagGetFileRequest ¶ added in v0.6.0
type RagGetFileRequest struct {
FileId string `form:"file_id" validate:"required"`
}
type RagGetFileResponse ¶ added in v0.6.0
type RagGetFilesResponse ¶ added in v0.6.0
type RagRetrievalRequest ¶ added in v0.6.0
type RagRetrievalResponse ¶ added in v0.6.0
type RagRetrievalResponse struct {
bcode.Bcode
Data RagRetrievalResponseData `json:"data"`
}
type RagRetrievalResponseData ¶ added in v0.6.0
type RagUploadFileResponse ¶ added in v0.6.0
type RagUploadFileResponse struct {
bcode.Bcode
Data RagUploadFileResponseData `json:"data"`
}
type RagUploadFileResponseData ¶ added in v0.6.0
type RagUploadFileResponseData struct {
FileId string `json:"file_id"`
}
type RecommendModelData ¶
type RecommendModelData struct {
Id string `json:"id"`
Service string `json:"service_name"`
ApiFlavor string `json:"api_flavor"`
Flavor string `json:"flavor"`
Method string `json:"method" default:"POST"`
Desc string `json:"desc"`
Url string `json:"url"`
AuthType string `json:"auth_type"`
AuthApplyUrl string `json:"auth_apply_url"`
AuthFields []string `json:"auth_fields"`
Name string `json:"name"`
ServiceProvider string `json:"service_provider_name"`
Size string `json:"size"`
IsRecommended bool `json:"is_recommended" default:"false"`
Status string `json:"status"`
Avatar string `json:"avatar"`
CanSelect bool `json:"can_select" default:"false"`
Class []string `json:"class"`
OllamaId string `json:"ollama_id"`
ParamsSize float32 `json:"params_size"`
InputLength int `json:"input_length"`
OutputLength int `json:"output_length"`
Source string `json:"source"`
IsDefault string `json:"is_default" default:"false"`
Think bool `json:"think"`
ThinkSwitch bool `json:"think_switch"`
Tools bool `json:"tools"` // 是否支持工具调用
Context float32 `json:"context"`
CreatedAt types.LocalTime `json:"created_at"`
}
type RecommendModelResponse ¶
type RecommendModelResponse struct {
bcode.Bcode
Data map[string][]RecommendModelData `json:"data"`
}
type ServiceEntry ¶
type ServiceEntry struct {
ServiceProviders ServiceProviderInfo `json:"service_providers"`
HybridPolicy string `json:"hybrid_policy"`
}
type ServiceProvider ¶
type ServiceProvider struct {
ProviderName string `json:"provider_name"`
ServiceName string `json:"service_name"`
ServiceSource string `json:"service_source"`
Desc string `json:"desc"`
AuthType string `json:"auth_type"`
AuthKey string `json:"auth_key"`
Flavor string `json:"flavor"`
Properties string `json:"properties"`
Models []string `json:"models"`
Status int `json:"status"`
CreatedAt types.LocalTime `json:"created_at"`
UpdatedAt types.LocalTime `json:"updated_at"`
}
type ServiceProviderEntry ¶
type ServiceProviderEntry struct {
ServiceName string `json:"service_name"`
ServiceSource string `json:"service_source"`
Desc string `json:"desc"`
APIFlavor string `json:"api_flavor"`
Method string `json:"method"`
URL string `json:"url"`
AuthType string `json:"auth_type"`
AuthKey string `json:"auth_key"`
Models []string `json:"models"`
}
type ServiceProviderInfo ¶
type ServiceWithModels ¶
type SetDefaultModelRequest ¶
type SupportModel ¶
type SupportModel struct {
Id string `json:"id"`
OllamaId string `json:"Ollama_id"`
Name string `json:"name"`
Avatar string `json:"avatar"`
Description string `json:"description"`
Class []string `json:"class"`
Flavor string `json:"flavor"`
ApiFlavor string `json:"api_flavor"`
Size string `json:"size"`
ParamSize float32 `json:"params_size"`
InputLength int `json:"input_length"`
OutputLength int `json:"output_length"`
ServiceSource string `json:"service_source"`
ServiceName string `json:"service_name"`
CreatedAt types.LocalTime `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"`
UpdatedAt types.LocalTime `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"`
}
type UpdateAIGCServiceRequest ¶
type UpdateAIGCServiceRequest struct {
ServiceName string `json:"service_name" validate:"required,supported_service"`
HybridPolicy string `json:"hybrid_policy" validate:"omitempty,supported_hybrid_policy"`
}
func (*UpdateAIGCServiceRequest) SetDefaults ¶ added in v0.7.0
func (r *UpdateAIGCServiceRequest) SetDefaults()
SetDefaults implements RequestDefaultSetter interface
type UpdateAvailableResponse ¶ added in v0.7.0
type UpdateAvailableResponse struct {
bcode.Bcode
Data UpdateAvailableResponseData `json:"data"`
}
type UpdateAvailableResponseData ¶ added in v0.7.0
type UpdateResponse ¶ added in v0.7.0
type UpdateServiceProviderRequest ¶
type UpdateServiceProviderRequest struct {
ProviderName string `json:"provider_name" validate:"required"`
ServiceName string `json:"service_name"`
ServiceSource string `json:"service_source"`
ApiFlavor string `json:"api_flavor"`
Desc string `json:"desc"`
Method string `json:"method"`
Url string `json:"url"`
AuthType string `json:"auth_type"`
AuthKey string `json:"auth_key"`
Models []string `json:"models"`
ExtraHeaders string `json:"extra_headers"`
ExtraJsonBody string `json:"extra_json_body"`
Properties string `json:"properties"`
}
Click to show internal directories.
Click to hide internal directories.