gpt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Factory *gptFactory

Functions

func Content2Message

func Content2Message(content llm.Content) (msg *gopenai.Message, err error)

Content2Message translates llm.Content into OpenAI Message

func Message2Content

func Message2Content(msg *gopenai.Message) (content llm.Content)

Message2Content translates OpenAI Message into llm.Content

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

GPT35Generator represents the OpenAI GPT3.5 Model and implements the llm.Generator interface

func (*Generator) Generate added in v0.1.0

func (gpt *Generator) Generate(input llm.Content) (response llm.Content, err error)

GenerateResponse to get response from the model

Jump to

Keyboard shortcuts

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