mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 09:08:54 -04:00
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:
1 parent
b4868d0941
commit
47147b1db8
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user