Documentation
¶
Index ¶
- type PythonEngine
- func (e *PythonEngine) Chat(context.Context, []inference.Message, inference.Options, ...) (string, error)
- func (e *PythonEngine) Close() error
- func (e *PythonEngine) Embeddings(ctx context.Context, reqBody map[string]interface{}) (*http.Response, error)
- func (e *PythonEngine) Generate(context.Context, string, inference.Options, inference.TokenCallback) (string, error)
- func (e *PythonEngine) ModelName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PythonEngine ¶
type PythonEngine struct {
// contains filtered or unexported fields
}
func NewPythonEngine ¶
func NewPythonEngine(ctx context.Context, modelName, modelDir string, runtimeManager *imagegen.RuntimeManager) (*PythonEngine, error)
func (*PythonEngine) Close ¶
func (e *PythonEngine) Close() error
func (*PythonEngine) Embeddings ¶
func (*PythonEngine) Generate ¶
func (e *PythonEngine) Generate(context.Context, string, inference.Options, inference.TokenCallback) (string, error)
func (*PythonEngine) ModelName ¶
func (e *PythonEngine) ModelName() string
Click to show internal directories.
Click to hide internal directories.