Documentation
¶
Overview ¶
Package openai implements stream.Stream for OpenAI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AuthToken string BaseURL string HTTPClient interface { Do(*http.Request) (*http.Response, error) } APIType string }
Config represents the configuration for the OpenAI API client.
func DefaultConfig ¶
DefaultConfig returns the default configuration for the OpenAI API client.
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
Stream openai stream.
func (*Stream) CallTools ¶
func (s *Stream) CallTools() []proto.ToolCallStatus
CallTools implements stream.Stream.
Click to show internal directories.
Click to hide internal directories.