openai

package
v0.0.0-...-732dc05 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	// GetBaseURL should return base URL.
	GetBaseURL() string
	// Models should return available models.
	Models(ctx context.Context) ([]openai.Model, error)
	// SendRequest should send request to OpenAI.
	SendRequest(ctx context.Context, request openai.ChatCompletionRequest) (openai.ChatCompletionResponse, error)
	// BuildRequest should build request form systemPrompt, userPrompt and assistantPrompt.
	BuildRequest(systemPrompts, userPrompts, assistantPrompt []string) openai.ChatCompletionRequest
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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