snowflake

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

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

func New(selected model.Model, key auth.APIKey, options ...Option) (inference.Client, error)

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.

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

func WithAccount(account string) Option

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 WithHeader(name, value string) Option

func WithReasoningEnabled

func WithReasoningEnabled(enabled bool) Option

func WithServiceTier

func WithServiceTier(value string) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL