gpt

package
v0.0.0-...-022f309 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(apiKey, model string) *Client

func (*Client) CreateImage

func (c *Client) CreateImage(story string) (string, error)

func (*Client) CreateStory

func (c *Client) CreateStory(words []lingq.Word, threshold int) (*Story, error)

func (*Client) LoadStory

func (c *Client) LoadStory(path string) (*Story, error)

type Question

type Question struct {
	Question string
	Answer   string
}

type Story

type Story struct {
	Title       string
	Description string
	Story       string
	Questions   []Question

	OriginalJSON string
	Thumbnail    string
}

func (Story) ToString

func (s Story) ToString() string

Jump to

Keyboard shortcuts

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