Documentation
¶
Index ¶
- type BaseProvider
- func (bp *BaseProvider) NewChatCompletion(ctx context.Context, in *chat_completion.Request) (*chat_completion.Response, error)
- func (bp *BaseProvider) NewEmbedding(ctx context.Context, in *embeddings.Request) (*embeddings.Response, error)
- func (bp *BaseProvider) NewResponses(ctx context.Context, in *responses.Request) (*responses.Response, error)
- func (bp *BaseProvider) NewSpeech(ctx context.Context, in *speech.Request) (*speech.Response, error)
- func (bp *BaseProvider) NewStreamingChatCompletion(ctx context.Context, in *chat_completion.Request) (chan *chat_completion.ResponseChunk, error)
- func (bp *BaseProvider) NewStreamingResponses(ctx context.Context, in *responses.Request) (chan *responses.ResponseChunk, error)
- func (bp *BaseProvider) NewStreamingSpeech(ctx context.Context, in *speech.Request) (chan *speech.ResponseChunk, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseProvider ¶
type BaseProvider struct{}
func (*BaseProvider) NewChatCompletion ¶
func (bp *BaseProvider) NewChatCompletion(ctx context.Context, in *chat_completion.Request) (*chat_completion.Response, error)
func (*BaseProvider) NewEmbedding ¶
func (bp *BaseProvider) NewEmbedding(ctx context.Context, in *embeddings.Request) (*embeddings.Response, error)
func (*BaseProvider) NewResponses ¶
func (*BaseProvider) NewStreamingChatCompletion ¶
func (bp *BaseProvider) NewStreamingChatCompletion(ctx context.Context, in *chat_completion.Request) (chan *chat_completion.ResponseChunk, error)
func (*BaseProvider) NewStreamingResponses ¶
func (bp *BaseProvider) NewStreamingResponses(ctx context.Context, in *responses.Request) (chan *responses.ResponseChunk, error)
func (*BaseProvider) NewStreamingSpeech ¶ added in v0.1.11
func (bp *BaseProvider) NewStreamingSpeech(ctx context.Context, in *speech.Request) (chan *speech.ResponseChunk, error)
Click to show internal directories.
Click to hide internal directories.