Documentation ¶
Index ¶
- type Client
- type Model
- type ModelService
- func (s *ModelService) CreateModel(model Model) (*Model, *ai.Response, error)
- func (s *ModelService) DeleteModel(model Model) (*ai.Response, error)
- func (s *ModelService) GetModelByID(id string) (*Model, *ai.Response, error)
- func (s *ModelService) GetModels(opt *ai.GetOptions, options ...ai.OptionFunc) ([]Model, *ai.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *ai.Client ComputeEnvironment *ai.ComputeEnvironmentService Model *ModelService Job *ai.JobService }
A Client manages communication with HSDP AI-Inference API
type Model ¶
type Model struct { ID string `json:"id,omitempty"` ResourceType string `json:"resourceType"` Name string `json:"name" validate:"required"` Version string `json:"version" validate:"required"` Description string `json:"description,omitempty"` ComputeEnvironment ai.ReferenceComputeEnvironment `json:"computeEnvironment" validate:"required"` ArtifactPath string `json:"artifactPath,omitempty"` SourceCode ai.SourceCode `json:"sourceCode"` EntryCommands []string `json:"entryCommands" validate:"required"` EnvVars []ai.EnvironmentVariable `json:"envVars,omitempty"` Labels []string `json:"labels,omitempty"` Type string `json:"type,omitempty"` AdditionalConfiguration string `json:"additionalConfiguration,omitempty"` Created string `json:"created,omitempty"` CreatedBy string `json:"createdBy,omitempty"` }
type ModelService ¶
type ModelService struct {
// contains filtered or unexported fields
}
func (*ModelService) CreateModel ¶
func (*ModelService) DeleteModel ¶
func (s *ModelService) DeleteModel(model Model) (*ai.Response, error)
func (*ModelService) GetModelByID ¶
func (*ModelService) GetModels ¶
func (s *ModelService) GetModels(opt *ai.GetOptions, options ...ai.OptionFunc) ([]Model, *ai.Response, error)
Click to show internal directories.
Click to hide internal directories.