Documentation
¶
Index ¶
- type CreateAIGCServiceRequest
- type CreateAIGCServiceResponse
- type CreateModelRequest
- type CreateModelResponse
- type CreateModelStreamRequest
- type CreateServiceProviderRequest
- type CreateServiceProviderResponse
- 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 GetModelListRequest
- type GetModelsRequest
- type GetModelsResponse
- type GetServiceProviderRequest
- type GetServiceProviderResponse
- type GetServiceProvidersRequest
- type GetServiceProvidersResponse
- type ImportServiceRequest
- type ImportServiceResponse
- type LocalSupportModelData
- type Model
- type ModelStreamCancelRequest
- type ModelStreamCancelResponse
- type RecommendModelData
- type RecommendModelResponse
- type Service
- type ServiceEntry
- type ServiceProvider
- type ServiceProviderEntry
- type ServiceProviderInfo
- type UpdateAIGCServiceRequest
- type UpdateAIGCServiceResponse
- 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"`
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" validate:"required"`
AuthKey string `json:"auth_key"`
ExtraHeaders string `json:"extra_headers"`
ExtraJsonBody string `json:"extra_json_body"`
Properties string `json:"properties"`
SkipModelFlag bool `json:"skip_model" default:"true"`
ModelName string `json:"model_name"`
}
type CreateModelRequest ¶
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 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"`
}
type GetAIGCServicesResponse ¶
type GetModelListRequest ¶
type GetModelsRequest ¶
type GetModelsResponse ¶
type GetServiceProviderRequest ¶
type GetServiceProviderRequest struct{}
type GetServiceProviderResponse ¶
type GetServiceProviderResponse struct{}
type GetServiceProvidersResponse ¶
type GetServiceProvidersResponse struct {
bcode.Bcode
Data []ServiceProvider `json:"data"`
}
type ImportServiceRequest ¶
type ImportServiceRequest struct {
Version string `json:"version"`
Services map[string]ServiceEntry `json:"services"`
ServiceProviders map[string]ServiceProviderEntry `json:"service_providers"`
}
type ImportServiceResponse ¶
type LocalSupportModelData ¶
type ModelStreamCancelRequest ¶
type ModelStreamCancelRequest struct {
ModelName string `json:"model_name" validate:"required"`
}
type RecommendModelData ¶
type RecommendModelData struct {
Service string `json:"service_name"`
Flavor string `json:"api_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"`
}
type RecommendModelResponse ¶
type RecommendModelResponse struct {
bcode.Bcode
Data map[string][]RecommendModelData `json:"data"`
}
type Service ¶
type Service struct {
ServiceName string `json:"service_name"`
HybridPolicy string `json:"hybrid_policy"`
RemoteProvider string `json:"remote_provider"`
LocalProvider string `json:"local_provider"`
Status int `json:"status"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
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 time.Time `json:"created_at"`
UpdatedAt time.Time `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 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.