Versions in this module Expand all Collapse all v0 v0.3.2 Jun 18, 2025 Changes in this version + const AuthTypeApiKey + const AuthTypeNone + const AuthTypeToken + const EngineStartModeDaemon + const EngineStartModeStandard + const FlavorAOG + const FlavorAliYun + const FlavorBaidu + const FlavorDeepSeek + const FlavorOllama + const FlavorOpenAI + const FlavorOpenvino + const FlavorTencent + const HybridPolicyDefault + const HybridPolicyLocal + const HybridPolicyRemote + const ImageTypeBase64 + const ImageTypePath + const ImageTypeUrl + const LogLevelDebug + const LogLevelError + const LogLevelInfo + const LogLevelWarn + const ProtocolGRPC + const ProtocolHTTP + const ProtocolHTTPS + const ServiceChat + const ServiceEmbed + const ServiceGenerate + const ServiceModels + const ServiceSourceLocal + const ServiceSourceRemote + const ServiceTextToImage + const VersionRecordStatusInstalled + const VersionRecordStatusUpdated + var SupportAuthType = []string + var SupportFlavor = []string + var SupportHybridPolicy = []string + var SupportImageType = []string + var SupportModelEngine = []string + var SupportService = []string + func IsDropAction(err error) bool + type ConversionStepDef struct + Config any + Converter string + type DeleteRequest struct + Model string + type DropAction struct + func (d *DropAction) Error() string + type EngineRecommendConfig struct + DownloadPath string + DownloadUrl string + EnginePath string + ExecFile string + ExecPath string + Host string + Origin string + RecommendModel string + Scheme string + type EngineVersionResponse struct + Version string + type EventListener func(string, any) + type EventManager struct + Listensers []EventListener + SupportedEventTypes []string + func (m *EventManager) AddListener(listener EventListener) + func (m *EventManager) GetSupportedEventTypes() []string + func (m *EventManager) Notify(eventType string, data any) + func (m *EventManager) NotifyHTTPRequest(etype string, method string, url string, header http.Header, body []byte) + func (m *EventManager) NotifyHTTPResponse(etype string, statusCode int, header http.Header, body []byte) + func (m *EventManager) RemoveListener(listener EventListener) + type HTTPContent struct + Body []byte + Header http.Header + func (hc HTTPContent) String() string + type HTTPErrorResponse struct + Body []byte + Header http.Header + StatusCode int + func (hc *HTTPErrorResponse) Error() string + type HttpRequestEventData struct + Body []byte + Header http.Header + Method string + Url string + type HttpResponseEventData struct + Body []byte + Header http.Header + StatusCode int + type ListModelResponse struct + Details ModelDetails + Digest string + Model string + ModifiedAt time.Time + Name string + Size int64 + type ListResponse struct + Models []ListModelResponse + type Model struct + CreatedAt time.Time + ID int + ModelName string + ProviderName string + Status string + UpdatedAt time.Time + func (t *Model) Index() map[string]interface{} + func (t *Model) PrimaryKey() string + func (t *Model) SetCreateTime(time time.Time) + func (t *Model) SetUpdateTime(time time.Time) + func (t *Model) TableName() string + type ModelDetails struct + Families []string + Family string + Format string + ParameterSize string + ParentModel string + QuantizationLevel string + type ProgressResponse struct + Completed int64 + Digest string + Status string + Total int64 + type PullModelRequest struct + Insecure bool + Model string + ModelType string + Name string + Password string + Stream *bool + Username string + type PullProgressFunc func(ProgressResponse) error + type RecommendConfig struct + EngineDownloadUrl string + ModelEngine string + ModelName string + type ScheduleDetails struct + Id uint64 + IsRunning bool + ListMark *list.Element + TimeComplete time.Time + TimeEnqueue time.Time + TimeRun time.Time + type Service struct + CreatedAt time.Time + HybridPolicy string + LocalProvider string + Name string + RemoteProvider string + Status int + UpdatedAt time.Time + func (t *Service) Index() map[string]interface{} + func (t *Service) PrimaryKey() string + func (t *Service) SetCreateTime(time time.Time) + func (t *Service) SetUpdateTime(time time.Time) + func (t *Service) TableName() string + type ServiceProvider struct + AuthKey string + AuthType string + CreatedAt time.Time + Desc string + ExtraHeaders string + ExtraJSONBody string + Flavor string + ID int + Method string + Properties string + ProviderName string + ServiceName string + ServiceSource string + Status int + URL string + UpdatedAt time.Time + func (t *ServiceProvider) Index() map[string]interface{} + func (t *ServiceProvider) PrimaryKey() string + func (t *ServiceProvider) SetCreateTime(time time.Time) + func (t *ServiceProvider) SetUpdateTime(time time.Time) + func (t *ServiceProvider) TableName() string + type ServiceProviderProperties struct + MaxInputTokens int + ModeIsChangeable bool + Models []string + SupportedResponseMode []string + XPU []string + type ServiceRequest struct + AskStreamMode bool + FromFlavor string + HTTP HTTPContent + HybridPolicy string + Model string + OriginalRequest *http.Request + Priority int + RemoteServiceProvider string + RequestExtraUrl string + RequestSegments int + Service string + func (sr *ServiceRequest) String() string + type ServiceResult struct + Error error + HTTP HTTPContent + StatusCode int + TaskId uint64 + Type ServiceResultType + func (sr *ServiceResult) String() string + func (sr *ServiceResult) WriteBack(w http.ResponseWriter) + type ServiceResultType int + const ServiceResultChunk + const ServiceResultDone + const ServiceResultFailed + type ServiceTarget struct + Location string + Model string + ServiceProvider *ServiceProvider + Stream bool + ToFavor string + XPU string + func (sr *ServiceTarget) String() string + type StreamMode struct + Header http.Header + Mode StreamModeType + func (sm *StreamMode) IsStream() bool + func (sm *StreamMode) ReadChunk(reader *bufio.Reader) ([]byte, error) + func (sm *StreamMode) UnwrapChunk(chunk []byte) []byte + func (sm *StreamMode) WrapChunk(chunk []byte) []byte + type StreamModeType int + const StreamModeEventStream + const StreamModeNDJson + const StreamModeNonStream + func (st StreamModeType) String() string + type VersionUpdateRecord struct + CreatedAt time.Time + ID int + ReleaseNotes string + Status int + UpdatedAt time.Time + Version string + func (t *VersionUpdateRecord) Index() map[string]interface{} + func (t *VersionUpdateRecord) PrimaryKey() string + func (t *VersionUpdateRecord) SetCreateTime(time time.Time) + func (t *VersionUpdateRecord) SetUpdateTime(time time.Time) + func (t *VersionUpdateRecord) TableName() string