Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AzureOpenAIToken = "" AzureOpenAIAPIVersion = "2023-03-15-preview" AzureOpenAIEndpoint = "" AzureOpenAIModelMapper = map[string]string{ "gpt-3.5-turbo": "gpt-35-turbo", "gpt-3.5-turbo-0301": "gpt-35-turbo-0301", } )
Functions ¶
func GetDeploymentByModel ¶
func NewOpenAIReverseProxy ¶
func NewOpenAIReverseProxy() *httputil.ReverseProxy
Types ¶
type ListModelResponse ¶ added in v1.1.0
type ModelPermission ¶ added in v1.1.0
type ModelPermission struct { ID string `json:"id"` Object string `json:"object"` Created int `json:"created"` AllowCreateEngine bool `json:"allow_create_engine"` AllowSampling bool `json:"allow_sampling"` AllowLogprobs bool `json:"allow_logprobs"` AllowSearchIndices bool `json:"allow_search_indices"` AllowView bool `json:"allow_view"` AllowFineTuning bool `json:"allow_fine_tuning"` Organization string `json:"organization"` Group any `json:"group"` IsBlocking bool `json:"is_blocking"` }
Click to show internal directories.
Click to hide internal directories.