package
2.4.3
Repository: https://github.com/proxati/llm_proxy.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewCostCounter creates an object that _should_ be a singleton, in the Addon layer.
NewCostCounterDefaults creates a new CostCounter object with reasonable defaults.
NewLogDumpContainer returns a LogDumpContainer with *only* the fields requested in logSources populated.
NewProxyConnectionStatsWithDuration is a slightly leaky abstraction, the doneAt param is for logging the entire session length, and comes from the proxy addon layer.
NewProxyRequest creates a new ProxyRequest from a MITM proxy request object.
NewProxyResponse creates a new ProxyRequest from a MITM proxy request object.
NewProxyResponseFromJSONBytes unmarshals a JSON object into a TrafficObject.
UnmarshalLogDumpContainer unmarshals JSON data into a LogDumpContainer.

# Constants

SchemaVersion is the version of the schema, used for backwards compatibility.
ObjectTypeDefault is the default object type for the log dump container, used for identifying the file type when loading various objects from json files.
SchemaVersion is the version of the schema, used for backwards compatibility.

# Structs

APIProvider holds the various pricing and model data for a single API provider, e.g., OpenAI.com.
AuditOutput is a struct that holds the output data (cost totals) from a single transaction.
CostCounter is a struct that holds the state of the cost counter.
LogDumpContainer holds the request and response data for a given flow.
ProxyConnectionStats is a struct that holds the output data (connection stats) from a single transaction.
ProxyRequest is a struct that represents a request to be proxied.
ProxyResponse is a struct that represents a response from a proxied request.