Documentation
¶
Index ¶
- func ByStatusOrder() func(s *sql.Selector)
- func NewModelRepo(db *db.Client) domain.ModelRepo
- type DailyUsage
- type ModelRepo
- func (r *ModelRepo) Create(ctx context.Context, m *domain.CreateModelReq) (*db.Model, error)
- func (r *ModelRepo) Delete(ctx context.Context, id string) error
- func (r *ModelRepo) GetTokenUsage(ctx context.Context, modelType consts.ModelType) (*domain.ModelTokenUsageResp, error)
- func (r *ModelRepo) GetWithCache(ctx context.Context, modelType consts.ModelType) ([]*db.Model, error)
- func (r *ModelRepo) InitModel(ctx context.Context, modelName, modelKey, modelURL string) error
- func (r *ModelRepo) List(ctx context.Context) (*domain.AllModelResp, error)
- func (r *ModelRepo) ModelUsage(ctx context.Context, ids []uuid.UUID) (map[uuid.UUID]domain.ModelUsage, error)
- func (r *ModelRepo) MyModelList(ctx context.Context, req *domain.MyModelListReq) ([]*db.Model, error)
- func (r *ModelRepo) Update(ctx context.Context, id string, ...) (*db.Model, error)
- type TokenUsage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByStatusOrder ¶
Types ¶
type DailyUsage ¶
type ModelRepo ¶
type ModelRepo struct {
// contains filtered or unexported fields
}
func (*ModelRepo) GetTokenUsage ¶
func (*ModelRepo) GetWithCache ¶
func (*ModelRepo) ModelUsage ¶
func (*ModelRepo) MyModelList ¶
type TokenUsage ¶
Click to show internal directories.
Click to hide internal directories.