mirror of
https://github.com/mudler/LocalAI.git
synced 2026-08-01 02:49:51 -04:00
Signed backend verification performs separate registry requests for manifests and referrers. Reuse LocalAI's version-aware User-Agent there so the full install flow is attributable to LocalAI. Assisted-by: Codex:gpt-5 Co-authored-by: localai-org-maint-bot <306269227+localai-org-maint-bot@users.noreply.github.com>
13 lines
475 B
Go
13 lines
475 B
Go
package oci
|
|
|
|
import "github.com/mudler/LocalAI/internal"
|
|
|
|
// UserAgent returns the User-Agent string LocalAI sends on outbound registry
|
|
// requests (OCI registries and Ollama). It identifies the client as LocalAI
|
|
// and, when the binary was built with a version stamp, appends it so registries
|
|
// can attribute client-side usage to LocalAI rather than to the generic
|
|
// User-Agent of the underlying transport library.
|
|
func UserAgent() string {
|
|
return internal.UserAgent()
|
|
}
|