adapterspecs

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package adapterspecs builds the adapter.Spec for every wire shape relay serves. It is part of the composition root: with cmd/relay, the only server package that imports a vendor adapter, so app/ and pkg/ code and tests reach vendor translators through the specs it returns. Building the Registry and checking its wiring stay with the caller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatCompletionsWireRules added in v0.31.0

func ChatCompletionsWireRules(h *host.Host, upstreamModel string) relayv1.WireRules

ChatCompletionsWireRules returns the Chat Completions wire rules for upstreamModel on host h: the row for its catalog name, else the row for the host its base URL names, so an operator-created host pointing at a listed upstream reads it the same way.

func MessagesWireRules added in v0.31.0

func MessagesWireRules(h *host.Host, upstreamModel string) relayv1.WireRules

MessagesWireRules is ChatCompletionsWireRules for the Anthropic Messages shape.

func Specs

func Specs() []*adapter.Spec

Specs returns one built Spec per supported wire shape, fresh on every call.

Types

This section is empty.

Jump to

Keyboard shortcuts

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