openai

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChat added in v0.0.8

func CreateChat(client *openai.Client, userID, content string) (*openai.ChatCompletionResponse, error)

func GetClient

func GetClient() *openai.Client

Types

type Chat

type Chat struct {
	Question string `json:"question,omitempty"`
	Answer   string `json:"answer,omitempty"`
}

type ChatCompletionResponse

type ChatCompletionResponse = openai.ChatCompletionResponse

Jump to

Keyboard shortcuts

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