mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
15 lines
471 B
Go
15 lines
471 B
Go
package settings
|
|
|
|
import "github.com/sashabaranov/go-openai"
|
|
|
|
type OpenAI struct {
|
|
BaseUrl string `json:"base_url" binding:"omitempty,url"`
|
|
Token string `json:"token" binding:"omitempty,safety_text"`
|
|
Proxy string `json:"proxy" binding:"omitempty,url"`
|
|
Model string `json:"model" binding:"omitempty,safety_text"`
|
|
APIType string `json:"api_type" binding:"omitempty,oneof=OPEN_AI AZURE"`
|
|
}
|
|
|
|
var OpenAISettings = &OpenAI{
|
|
APIType: string(openai.APITypeOpenAI),
|
|
}
|