PtcLlmHttp.Target (PtcLlmHttp v0.1.0)

Copy Markdown View Source

Validated target authority and wire capabilities.

A target is canonicalized once. It contains no credential and inspection reveals none of its endpoint, model, group, or capability configuration. HTTPS is mandatory except for an explicitly authorized literal loopback HTTP target.

Summary

Functions

Validates and canonicalizes one OpenAI-compatible target.

Types

t()

@opaque t()

Functions

new(options)

@spec new(keyword()) :: {:ok, t()} | {:error, PtcLlmHttp.Error.t()}

Validates and canonicalizes one OpenAI-compatible target.