Interface CompletionHop

One entry of the hop list a route resolves to.

interface CompletionHop {
    provider: string;
    model?: string;
    entry?: ResolvedFallbackEntry;
    ownCredentials?: boolean;
}

Properties

provider: string
model?: string
entry?: ResolvedFallbackEntry

The chain entry behind a fallback hop, with its role in the walk when the policy chain gave it one.

ownCredentials?: boolean

The primary only: whether the route's own key and base URL are for this provider. False when a router picked another one, which then runs on its own credentials.