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 ¶
func (m *MockGoOpenAIClient) CreateChatCompletion(ctx context.Context, req openai.ChatCompletionRequest) (openai.ChatCompletionResponse, error)
CreateChatCompletion mocks base method.
func (*MockGoOpenAIClient) EXPECT ¶
func (m *MockGoOpenAIClient) EXPECT() *MockGoOpenAIClientMockRecorder
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.
Click to show internal directories.
Click to hide internal directories.