Skip to content

BedrockMantleRoutes

Namespace: Vercel.AI.AmazonBedrock

public static class BedrockMantleRoutes

Mantle URL rules. Some model ids are served under /openai/v1.

Inheritance: object

View source

public static string Url(string region, string? baseUrl, string modelId, string path)

Joins the Mantle origin and <code class=“paramref”>path</code> for <code class=“paramref”>modelId</code>.

Parameters

Name Type Description
region string
baseUrl string
modelId string
path string

Returns: string

View source

public static bool UsesOpenAiRoute(string modelId)

True for Mantle models served on the OpenAI route, excluding openai.gpt-oss-.

Parameters

Name Type Description
modelId string

Returns: bool

View source

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