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 Azure OpenAI client for the OpenAI API.
No description provided by the author
# Structs
ChatCompletion Ref: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions.
ChatCompletionChunk represents SSEvent a chat response is broken down on chat streaming Ref: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions.
ChatRequest is an Azure openai-specific request schema.
ChatStream represents chat stream for a specific request.
No description provided by the author
Client is a client for accessing Azure OpenAI API.
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