openai

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GPT4o added in v0.0.16

func GPT4o(opts ...option.RequestOption) api.Model

func GPT4oMini added in v0.0.16

func GPT4oMini(opts ...option.RequestOption) api.Model

func Model added in v0.0.16

func Model(name string, opts ...option.RequestOption) api.Model

func O1 added in v0.0.16

func O1(opts ...option.RequestOption) api.Model

func O1Mini added in v0.0.16

func O1Mini(opts ...option.RequestOption) api.Model

Types

type Provider

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

func New

func New(options ...option.RequestOption) *Provider

func (*Provider) ChatCompletion

func (p *Provider) ChatCompletion(ctx context.Context, params provider.CompletionParams) (<-chan provider.StreamEvent, error)

Jump to

Keyboard shortcuts

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