azurecognitive

package
v0.14.0 Latest Latest
Warning

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

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

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 New

func New(selected model.Model, key auth.APIKey, options ...Option) (inference.Client, 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 WithHeader(name, value string) Option

func WithResourceName

func WithResourceName(resource string) Option

WithResourceName sets the resource used when Model.BaseURL is empty. It takes precedence over AZURE_COGNITIVE_SERVICES_RESOURCE_NAME.

func WithThinkingBudget

func WithThinkingBudget(budget int) Option

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

type ResourceConfigurationReason

type ResourceConfigurationReason string

ResourceConfigurationReason classifies Azure resource resolution failures.

const (
	ResourceMissing ResourceConfigurationReason = "resource name is missing"
	ResourceInvalid ResourceConfigurationReason = "resource name is invalid"
)

Jump to

Keyboard shortcuts

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