bedrock

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 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 BedrockProxy

type BedrockProxy struct {
	*bedrock.BedrockEngine
}

func (*BedrockProxy) HandleChatCompletionRequest

func (e *BedrockProxy) HandleChatCompletionRequest(ctx context.Context, transformedBody []byte, stream bool) (*http.Response, error)

func (*BedrockProxy) SendChatCompletionResponse

func (e *BedrockProxy) SendChatCompletionResponse(bedrockResp *http.Response, w http.ResponseWriter, stream bool) error

func (*BedrockProxy) TransformChatCompletionRequest

func (e *BedrockProxy) TransformChatCompletionRequest(reqBody openai_types.IncomingChatCompletionRequest) ([]byte, error)

Jump to

Keyboard shortcuts

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