openai

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package openai is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOpenAIClient

func NewOpenAIClient(cli GoOpenAIClient) query.OpenAIClient

Types

type GoOpenAIClient

type GoOpenAIClient interface {
	CreateChatCompletion(ctx context.Context, req goa.ChatCompletionRequest) (goa.ChatCompletionResponse, error)
}

type MockGoOpenAIClient

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

MockGoOpenAIClient is a mock of GoOpenAIClient interface.

func NewMockGoOpenAIClient

func NewMockGoOpenAIClient(ctrl *gomock.Controller) *MockGoOpenAIClient

NewMockGoOpenAIClient creates a new mock instance.

func (*MockGoOpenAIClient) CreateChatCompletion

CreateChatCompletion mocks base method.

func (*MockGoOpenAIClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockGoOpenAIClientMockRecorder

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

MockGoOpenAIClientMockRecorder is the mock recorder for MockGoOpenAIClient.

func (*MockGoOpenAIClientMockRecorder) CreateChatCompletion

func (mr *MockGoOpenAIClientMockRecorder) CreateChatCompletion(ctx, req any) *gomock.Call

CreateChatCompletion indicates an expected call of CreateChatCompletion.

Jump to

Keyboard shortcuts

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