llm

package
v0.0.0-...-3a81c59 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Overview

Package llm provides LLM integration for the streamctl application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatGPT

type ChatGPT struct {
	Model *openai.ChatModel
}

func NewChatGPT

func NewChatGPT(
	ctx context.Context,
	modelName string,
	apiKey secret.String,
) (_ret *ChatGPT, _err error)

func (*ChatGPT) Close

func (gpt *ChatGPT) Close() error

func (*ChatGPT) Generate

func (gpt *ChatGPT) Generate(
	ctx context.Context,
	prompt string,
) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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