Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ModelExtractor ¶
type ModelExtractor struct {
// contains filtered or unexported fields
}
ModelExtractor implements the models extraction.
func NewModelExtractor ¶
func NewModelExtractor() *ModelExtractor
NewModelExtractor returns a new model extractor.
func (*ModelExtractor) Extract ¶
func (me *ModelExtractor) Extract(_ context.Context, in fwkdl.PollInput[*ModelResponse]) error
Extract stores the model list as an endpoint attribute.
func (*ModelExtractor) Produces ¶
func (me *ModelExtractor) Produces() map[fwkplugin.DataKey]any
Produces returns data produced by the producer.
func (*ModelExtractor) TypedName ¶
func (me *ModelExtractor) TypedName() fwkplugin.TypedName
TypedName returns the type and name of the ModelExtractor.
type ModelResponse ¶
type ModelResponse struct {
Object string `json:"object"`
Data []attrmodels.ModelData `json:"data"`
}
ModelResponse is the response from /v1/models API.
Click to show internal directories.
Click to hide internal directories.