From 47147b1db82099abda2418a8748fe35a836dce66 Mon Sep 17 00:00:00 2001 From: clippytool Date: Mon, 19 Oct 2026 12:26:02 +0800 Subject: [PATCH] docs: reattach doc comments to the declarations they describe Signed-off-by: clippytool (cherry picked from commit 4a8519ceb2114f28b20e03bae1d2d93b90035ff2) --- core/backend/video.go | 4 ++-- core/config/distributed_config.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) }