models

package
v0.13.0-prerelease-test-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModel

func GetModel(modelName string) (*manifest.ModelInfo, error)

func InvokeModel

func InvokeModel(ctx context.Context, modelName string, input string) (string, error)

func PostToModelEndpoint

func PostToModelEndpoint[TResult any](ctx context.Context, model *manifest.ModelInfo, payload any) (TResult, error)

Types

type ModelInfo

type ModelInfo struct {
	Name     string
	FullName string
}

func GetModelInfo

func GetModelInfo(modelName string) (*ModelInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL