diff --git a/core/backend/video.go b/core/backend/video.go index 8645869db..4ddcc6951 100644 --- a/core/backend/video.go +++ b/core/backend/video.go @@ -11,8 +11,6 @@ import ( model "github.com/mudler/LocalAI/pkg/model" ) -// VideoGenerationOptions is the backend-neutral request passed to video generators. -// Media fields contain staged local paths by the time they reach this layer. // VideoReferenceOptions is a reference video whose frames were staged into one // directory, named so that lexicographic order is frame order. type VideoReferenceOptions struct { @@ -21,6 +19,8 @@ type VideoReferenceOptions struct { Audio string } +// VideoGenerationOptions is the backend-neutral request passed to video generators. +// Media fields contain staged local paths by the time they reach this layer. type VideoGenerationOptions struct { Height int32 Width int32 diff --git a/core/config/distributed_config.go b/core/config/distributed_config.go index fe798ce92..b2fea2266 100644 --- a/core/config/distributed_config.go +++ b/core/config/distributed_config.go @@ -569,13 +569,13 @@ func (c DistributedConfig) HealthCheckIntervalOrDefault() time.Duration { return cmp.Or(c.HealthCheckInterval, DefaultHealthCheckInterval) } -// StaleNodeThresholdOrDefault returns the configured threshold or the default. // ModelConfigResyncIntervalOrDefault returns the configured interval or the // default. func (c DistributedConfig) ModelConfigResyncIntervalOrDefault() time.Duration { return cmp.Or(c.ModelConfigResyncInterval, DefaultModelConfigResyncInterval) } +// StaleNodeThresholdOrDefault returns the configured threshold or the default. func (c DistributedConfig) StaleNodeThresholdOrDefault() time.Duration { return cmp.Or(c.StaleNodeThreshold, DefaultStaleNodeThreshold) }