Documentation
¶
Overview ¶
Package snowflake provides Snowflake Cortex's documented OpenAI-compatible Chat Completions endpoint.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New constructs a Snowflake Cortex client. Snowflake's Chat Completions API names the output limit max_completion_tokens; the adapter translates the shared OpenAI request field without changing the public inference contract.
func NewCounter ¶
func NewCounter(_ auth.APIKey) (contextcount.ContextCounter, error)
Types ¶
type ConfigurationError ¶
type ConfigurationError struct {
Reason ConfigurationReason
}
func (*ConfigurationError) Error ¶
func (e *ConfigurationError) Error() string
type ConfigurationReason ¶
type ConfigurationReason string
const ( AccountMissing ConfigurationReason = "account is missing" AccountInvalid ConfigurationReason = "account is invalid" )
type CounterSupportError ¶
type CounterSupportError = llm.CounterSupportError
type Option ¶
type Option func(*config)
func WithAccount ¶
WithAccount sets the Snowflake account identifier used when Model.BaseURL is empty. It accepts the account locator/org form used in the Cortex URL.
func WithHeader ¶
func WithReasoningEnabled ¶
func WithServiceTier ¶
Click to show internal directories.
Click to hide internal directories.