mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-04 12:39:06 +02:00
Request/response parsers and SSE/event-stream metering, the embedded pricing table, and the builtin middleware set: request parser, router, policy limit-check/record, cost meter, guardrail, identity inject, response parser. Includes the path-routed providers — Google Vertex AI (keyfile:: service-account OAuth minting) and AWS Bedrock (bearer auth, invoke/converse/streaming, optional /bedrock prefix) — plus the Models allowlist and unmeterable-publisher deny.
21 lines
650 B
Go
21 lines
650 B
Go
//go:build !unix
|
|
|
|
package pricing
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
// loadPricing is unavailable on non-Unix platforms because O_NOFOLLOW and
|
|
// fstat-from-FD are required to honour the spec's symlink-safety rules. The
|
|
// proxy is only deployed on Linux today; a Windows port would need an
|
|
// equivalent path-as-handle implementation.
|
|
func loadPricing(path string) (*Table, time.Time, error) {
|
|
return nil, time.Time{}, fmt.Errorf("llmobs pricing loader is not supported on this platform: %s", path)
|
|
}
|
|
|
|
func statMtime(path string) (time.Time, error) {
|
|
return time.Time{}, fmt.Errorf("llmobs pricing loader is not supported on this platform: %s", path)
|
|
}
|