docs: reattach doc comments to the declarations they describe

Signed-off-by: clippytool <vetclippy@outlook.com>
(cherry picked from commit 4a8519ceb2)
This commit is contained in:
clippytool authored and Ettore Di Giacinto committed 2026-10-25 08:43:05 +00:00
1 parent b4868d0941
commit 47147b1db8
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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
+1 -1
View File
@@ -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)
}