Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var API_Endpoint_Data []APIEndpoint
API_Endpoint_Data is populated from init() with data loaded from the embedded JSON file
Functions ¶
func NewOpenAIChatCompletionRequest ¶
func NewOpenAIChatCompletionRequest(body *string) (completion *openai.ChatCompletionRequest, err error)
NewOpenAIChatCompletionRequest creates a new OpenAI ChatCompletion Request object from a JSON string
func NewOpenAIChatCompletionResponse ¶
func NewOpenAIChatCompletionResponse(body *string) (completion *openai.ChatCompletionResponse, err error)
NewOpenAIChatCompletionResponse creates a new OpenAI ChatCompletion Response object from a JSON string
Types ¶
type APIEndpoint ¶
APIEndpoint represents the pricing data for a single API endpoint, such as "https://api.openai.com/v1/chat/completions"
Click to show internal directories.
Click to hide internal directories.