Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AzureOpenAIToken = "" AzureOpenAIAPIVersion = "2023-03-15-preview" AzureOpenAIEndpoint = "https://xxxxxxxx.openai.azure.com/" AzureOpenAIModelMapper = map[string]string{ "gpt-3.5-turbo": "gpt-35-turbo", "gpt-3.5-turbo-0301": "gpt-35-turbo-0301", } )
Functions ¶
func GetDeploymentByModel ¶
func InitAzureConfig ¶
func InitAzureConfig(apiVersion, endpoint, modelMapper, token string)
func NewOpenAIReverseProxy ¶
func NewOpenAIReverseProxy() *httputil.ReverseProxy
Types ¶
type ListModelResponse ¶
type ModelPermission ¶
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.