AI: Disable Vision API in demo mode #127 #1090

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-04-11 05:37:08 +02:00
parent c14be8f57e
commit 720d83ef3a

View File

@@ -21,7 +21,7 @@ func (c *Config) VisionYaml() string {
// VisionApi checks whether the Computer Vision API endpoints should be enabled.
func (c *Config) VisionApi() bool {
return c.options.VisionApi
return c.options.VisionApi && !c.options.Demo
}
// VisionUri returns the remote computer vision service URI, e.g. https://example.com/api/v1/vision.