mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
19 lines
571 B
Go
19 lines
571 B
Go
package vision
|
|
|
|
import (
|
|
"github.com/photoprism/photoprism/internal/ai/vision/openai"
|
|
"github.com/photoprism/photoprism/pkg/http/scheme"
|
|
)
|
|
|
|
// init registers the OpenAI engine alias so models can set Engine: "openai"
|
|
// and inherit sensible defaults (request/response formats, file scheme, and
|
|
// preferred thumbnail resolution).
|
|
func init() {
|
|
RegisterEngineAlias(openai.EngineName, EngineInfo{
|
|
RequestFormat: ApiFormatOpenAI,
|
|
ResponseFormat: ApiFormatOpenAI,
|
|
FileScheme: string(scheme.Base64),
|
|
DefaultResolution: openai.DefaultResolution,
|
|
})
|
|
}
|