openai

package
v0.0.0-...-27c9e6d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenAIController

type OpenAIController struct {
}

func (*OpenAIController) CreateChatCompletion

func (controller *OpenAIController) CreateChatCompletion() gin.HandlerFunc

func (*OpenAIController) CreateImage

func (controller *OpenAIController) CreateImage() gin.HandlerFunc

func (*OpenAIController) GenerateUiComponent

func (controller *OpenAIController) GenerateUiComponent() gin.HandlerFunc

type OpenaiApiUsageDto

type OpenaiApiUsageDto struct {
	AccountId string          `json:"account_id" binding:"required"`
	Model     string          `json:"model" binding:"-"`
	UseCase   string          `json:"use_case" binding:"required"`
	CalledAt  string          `json:"called_at" binding:"-"`
	Usage     json.RawMessage `json:"usage" binding:"-"`
}

Jump to

Keyboard shortcuts

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