Documentation
¶
Overview ¶
Package azurecognitive provides Azure Cognitive Services' documented OpenAI and Anthropic-compatible model endpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCounter ¶
func NewCounter(_ auth.APIKey) (contextcount.ContextCounter, error)
Types ¶
type CounterSupportError ¶
type CounterSupportError = llm.CounterSupportError
type Option ¶
type Option func(*config)
Option customizes Azure Cognitive Services endpoint resolution and documented request headers/body controls.
func WithHeader ¶
func WithResourceName ¶
WithResourceName sets the resource used when Model.BaseURL is empty. It takes precedence over AZURE_COGNITIVE_SERVICES_RESOURCE_NAME.
func WithThinkingBudget ¶
type ResourceConfigurationError ¶
type ResourceConfigurationError struct {
Reason ResourceConfigurationReason
}
ResourceConfigurationError is returned before network I/O for a missing or malformed Azure resource name.
func (*ResourceConfigurationError) Error ¶
func (e *ResourceConfigurationError) Error() string
type ResourceConfigurationReason ¶
type ResourceConfigurationReason string
ResourceConfigurationReason classifies Azure resource resolution failures.
const ( ResourceMissing ResourceConfigurationReason = "resource name is missing" ResourceInvalid ResourceConfigurationReason = "resource name is invalid" )
Click to show internal directories.
Click to hide internal directories.