Documentation ¶
Index ¶
- Constants
- func CheckAIServiceStarted(port int) error
- func CheckDockerDaemonRunning() (bool, error)
- func CheckUIServiceStarted(url string) error
- func FindAvailablePort(defaultPort int) int
- func IfPortUsedByWrenUI(port int) bool
- func OpenDockerDaemon() error
- func Openbrowser(url string) error
- func PrepareConfigFileForOpenAI(projectDir string, generationModel string) error
- func PrepareDockerFiles(openaiApiKey string, openaiGenerationModel string, hostPort int, aiPort int, ...) error
- func RunDockerCompose(projectName string, projectDir string, llmProvider string) error
- type OS
- type WrenRC
Constants ¶
View Source
const ( // please change the version when the version is updated WREN_PRODUCT_VERSION string = "0.13.1" DOCKER_COMPOSE_YAML_URL string = "https://raw.githubusercontent.com/Canner/WrenAI/" + WREN_PRODUCT_VERSION + "/docker/docker-compose.yaml" DOCKER_COMPOSE_ENV_URL string = "https://raw.githubusercontent.com/Canner/WrenAI/" + WREN_PRODUCT_VERSION + "/docker/.env.example" AI_SERVICE_CONFIG_URL string = "https://raw.githubusercontent.com/Canner/WrenAI/" + WREN_PRODUCT_VERSION + "/docker/config.example.yaml" )
Variables ¶
This section is empty.
Functions ¶
func CheckAIServiceStarted ¶
func CheckUIServiceStarted ¶
func FindAvailablePort ¶
func IfPortUsedByWrenUI ¶
func OpenDockerDaemon ¶
func OpenDockerDaemon() error
func Openbrowser ¶
func PrepareDockerFiles ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.