package
0.1.18
Repository: https://github.com/liudding/go-llm-api.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
NewClient creates new OpenAI API client.
NewClientWithAuth creates new API client.
NewClientWithConfig creates new OpenAI API client for specified config.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Chat message role defined by the OpenAI API.
Chat message role defined by the OpenAI API.

# Variables

# Structs

APIError provides error information returned by the API.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ChatCompletionRequest represents a request structure for chat completion API.
ChatCompletionResponse represents a response structure for chat completion API.
ChatCompletionStream Note: Perhaps it is more elegant to abstract Stream using generics.
Client is OpenAI GPT-3 API client.
ClientConfig is a configuration of a client.
No description provided by the author
RequestError provides informations about generic request errors.
Usage Represents the total token usage per request to OpenAI.