openai

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	ID      string `json:"id"`
	Object  string `json:"object"`
	Created int64  `json:"created"`
	OwnedBy string `json:"owned_by"`
}

func ListModels

func ListModels(ctx context.Context, cli *http.Client, openAIKey string) ([]Model, error)

ListModels returns a list of all models available to the user.

Directories

Path Synopsis
Package chatgpt is a simple binding to the ChatGPT API.
Package chatgpt is a simple binding to the ChatGPT API.

Jump to

Keyboard shortcuts

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