ApiKeyStyle
Namespace: Vercel.AI.OpenAICompatible
public enum ApiKeyStyleHow the API key is sent.
Fields
Section titled “Fields”ApiKeyHeader
Section titled “ApiKeyHeader”ApiKeyHeader = 1A custom header such as api-key.
Value: ApiKeyStyle
Bearer
Section titled “Bearer”Bearer = 0Authorization: Bearer.
Value: ApiKeyStyle
CustomHeader
Section titled “CustomHeader”CustomHeader = 5A named header whose value is the raw key.
Value: ApiKeyStyle
Key = 3Authorization: Key.
Value: ApiKeyStyle
RawAuthorization
Section titled “RawAuthorization”RawAuthorization = 4The raw key as the Authorization value.
Value: ApiKeyStyle
Token = 2Authorization: Token.
Value: ApiKeyStyle
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product