mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
Merge branch 'main' into ocr
# Conflicts: # mobile/openapi/lib/api.dart # mobile/openapi/lib/api_client.dart # mobile/openapi/lib/model/system_config_machine_learning_dto.dart # open-api/immich-openapi-specs.json # open-api/typescript-sdk/src/fetch-client.ts # server/src/dtos/system-config.dto.ts
This commit is contained in:
commit
de8abe0de0
228 changed files with 12325 additions and 3022 deletions
|
|
@ -54,6 +54,11 @@ export interface SystemConfig {
|
|||
machineLearning: {
|
||||
enabled: boolean;
|
||||
urls: string[];
|
||||
availabilityChecks: {
|
||||
enabled: boolean;
|
||||
timeout: number;
|
||||
interval: number;
|
||||
};
|
||||
clip: {
|
||||
enabled: boolean;
|
||||
modelName: string;
|
||||
|
|
@ -183,6 +188,8 @@ export interface SystemConfig {
|
|||
};
|
||||
}
|
||||
|
||||
export type MachineLearningConfig = SystemConfig['machineLearning'];
|
||||
|
||||
export const defaults = Object.freeze<SystemConfig>({
|
||||
backup: {
|
||||
database: {
|
||||
|
|
@ -235,6 +242,11 @@ export const defaults = Object.freeze<SystemConfig>({
|
|||
machineLearning: {
|
||||
enabled: process.env.IMMICH_MACHINE_LEARNING_ENABLED !== 'false',
|
||||
urls: [process.env.IMMICH_MACHINE_LEARNING_URL || 'http://immich-machine-learning:3003'],
|
||||
availabilityChecks: {
|
||||
enabled: true,
|
||||
timeout: Number(process.env.IMMICH_MACHINE_LEARNING_PING_TIMEOUT) || 2000,
|
||||
interval: 30_000,
|
||||
},
|
||||
clip: {
|
||||
enabled: true,
|
||||
modelName: 'ViT-B-32__openai',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue