gpt

package
v0.0.0-...-a8bc1a2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatCompletionsLogic

type ChatCompletionsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func (*ChatCompletionsLogic) ChatCompletions

func (l *ChatCompletionsLogic) ChatCompletions(req *types.ReqChatCompletion) (resp *types.ResChatCompletion, err error)

type EmbeddingsLogic

type EmbeddingsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewEmbeddingsLogic

func NewEmbeddingsLogic(ctx context.Context, svcCtx *svc.ServiceContext, w *http.ResponseWriter, r *http.Request) *EmbeddingsLogic

func (*EmbeddingsLogic) Embeddings

func (l *EmbeddingsLogic) Embeddings(req *types.ReqEmbeddings) (resp *types.ResEmbeddings, err error)

Jump to

Keyboard shortcuts

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