ollama

package
v0.0.0-...-e9e0555 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ollamaGeneration *viper.Viper, modelName string, inputText string, w http.ResponseWriter, r *http.Request) string

func StreamWrapper

func StreamWrapper(w http.ResponseWriter, r *http.Request) func(context context.Context, chunk []byte) error

StreamWrapper is a function that takes a http.ResponseWriter and a http.Request as parameters. It returns a function that takes a context and a byte slice, and returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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