# README
Chat completion client
This is a hard fork of github.com/sashabaranov/go-openai that just includes the APIs need for GPTScript. Eventually this will be rewritten
License
This project is licensed under the Apache License - see the LICENSE file for details.
# Functions
No description provided by the author
No description provided by the author
NewClient creates new OpenAI 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
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.
Chat message role defined by the OpenAI API.
Chat message role defined by the OpenAI API.
Chat message role defined by the OpenAI 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
No description provided by the author
No description provided by the author
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
Deprecated: Will be shut down on January 04, 2024.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
Deprecated: Will be shut down on January 04, 2024.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
Deprecated: Will be shut down on January 04, 2024.
Deprecated: Will be shut down on January 04, 2024.
Deprecated: Will be shut down on January 04, 2024.
Deprecated: Will be shut down on January 04, 2024.
Deprecated: Will be shut down on January 04, 2024.
Deprecated: Will be shut down on January 04, 2024.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
GPT3 Defines the models provided by OpenAI to use when generating completions from OpenAI.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
nolint:lll.
nolint:lll.
No description provided by the author
No description provided by the author
# Structs
APIError provides error information returned by the OpenAI API.
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.
No description provided by the author
ChatCompletionStream Note: Perhaps it is more elegant to abstract Stream using generics.
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
Client is OpenAI GPT-3 API client.
ClientConfig is a configuration of a client.
No description provided by the author
No description provided by the author
FineTuneModelDeleteResponse represents the deletion status of a fine-tuned model.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InnerError Azure Content filtering.
LogProb represents the probability information for a token.
LogProbs is the top-level structure containing the log probability information.
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
No description provided by the author
No description provided by the author
Model struct represents an OpenAPI model.
ModelsList is a list of models, including those that belong to the user or organization.
Permission struct represents an OpenAPI permission.
No description provided by the author
RateLimitHeaders struct represents Openai rate limits headers.
RequestError provides informations about generic request errors.
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
No description provided by the author
No description provided by the author
No description provided by the author
Usage Represents the total token usage per request to OpenAI.
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: use FunctionDefinition instead.
No description provided by the author
No description provided by the author
No description provided by the author