package
0.1.1
Repository: https://github.com/ksred/llm.git
Documentation: pkg.go.dev

# Functions

NewConfig creates a new Config with the given API key and options.
WithBaseURL sets the base URL for API requests.
WithCostControl sets cost control configuration.
WithHTTPClient sets a custom HTTP client.
WithMaxRetries sets the maximum number of retries.
WithMetrics sets the metrics callbacks.
WithModel sets the model.
WithPoolConfig sets the connection pool configuration.
WithProvider sets the provider.
WithRateLimit sets rate limiting configuration.
WithRetryConfig sets the retry configuration.
WithTimeout sets the timeout for requests.

# Constants

No description provided by the author
No description provided by the author
Default values.
No description provided by the author
Environment variable names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrInvalidProvider is returned when an unsupported provider is specified.
ErrMissingAPIKey is returned when no API key is provided.
ErrMissingModel is returned when no model is specified.
ErrMissingProvider is returned when no provider is specified.

# Structs

Config holds all configuration for the LLM client.
CostControl defines cost control configuration.
RateLimit defines rate limiting configuration.

# Type aliases

Option is a function that modifies Config.