p302ai

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: 6 Imported by: 0

Documentation

Overview

Package p302ai provides the 302.AI OpenAI-compatible Chat Completions API.

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 302.AI Chat Completions client.

func NewCounter

func NewCounter(_ auth.APIKey) (contextcount.ContextCounter, error)

NewCounter reports that 302.AI documents no exact input-token endpoint.

Types

type CounterSupportError

type CounterSupportError = llm.CounterSupportError

CounterSupportError is the shared typed exact-counter boundary.

type Option

type Option = compat.Option

Option customizes documented 302.AI request behavior.

func WithHeader

func WithHeader(name, value string) Option

WithHeader adds a documented gateway header for a 302.AI deployment.

Jump to

Keyboard shortcuts

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