package
0.0.0-20240624181418-df6d72de9bde
Repository: https://github.com/einstack/glide.git
Documentation: pkg.go.dev
# Functions
DefaultConfig for OpenAI models.
No description provided by the author
NewChatRequestFromConfig fills the struct from the config.
No description provided by the author
NewClient creates a new OpenAI client for the OpenAI API.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ChatCompletion Ref: https://platform.openai.com/docs/api-reference/chat/object.
ChatCompletionChunk represents SSEvent a chat response is broken down on chat streaming Ref: https://platform.openai.com/docs/api-reference/chat/streaming.
ChatRequest is an OpenAI-specific request schema.
ChatStream represents OpenAI chat stream for a specific request.
No description provided by the author
Client is a client for accessing OpenAI API.
No description provided by the author
No description provided by the author
No description provided by the author
Params defines OpenAI-specific model params with the specific validation of values TODO: Add validations.
No description provided by the author
No description provided by the author