Skip to content

ApiKeyStyle

Namespace: Vercel.AI.OpenAICompatible

public enum ApiKeyStyle

How the API key is sent.

View source

ApiKeyHeader = 1

A custom header such as api-key.

Value: ApiKeyStyle

View source

Bearer = 0

Authorization: Bearer.

Value: ApiKeyStyle

View source

CustomHeader = 5

A named header whose value is the raw key.

Value: ApiKeyStyle

View source

Key = 3

Authorization: Key.

Value: ApiKeyStyle

View source

RawAuthorization = 4

The raw key as the Authorization value.

Value: ApiKeyStyle

View source

Token = 2

Authorization: Token.

Value: ApiKeyStyle

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product