groq

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGroq

func NewGroq(ctx context.Context, model string, temperature float64) (nuwaLLM.Model, error)

Types

type Groq

type Groq struct {
	Client       *openai.LLM
	Temperature  float64
	SystemPrompt string
}

func (*Groq) Chat

func (o *Groq) Chat(ctx context.Context, message string) (string, error)

func (*Groq) CloseBackend

func (o *Groq) CloseBackend() error

func (*Groq) GenerateContent

func (o *Groq) GenerateContent(ctx context.Context, prompt string) (string, error)

func (*Groq) SetSystemPrompt

func (o *Groq) SetSystemPrompt(ctx context.Context, prompt string) error

Jump to

Keyboard shortcuts

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