UNPKG

@nyrra/foundry-ai

Version:

Thin Palantir Foundry provider adapters and model catalog for the Vercel AI SDK.

18 lines (15 loc) 814 B
import { F as FoundryLanguageModel } from '../middleware-Dzb9N4ik.js'; import { b as AnthropicModelId } from '../anthropic-models-BaL7YKwP.js'; import { F as FoundryConfig } from '../types-Bgk00_lZ.js'; import 'ai'; interface FoundryAnthropicProvider { (modelId: AnthropicModelId): FoundryLanguageModel; specificationVersion: FoundryLanguageModel['specificationVersion']; languageModel(modelId: AnthropicModelId): FoundryLanguageModel; chat(modelId: AnthropicModelId): FoundryLanguageModel; messages(modelId: AnthropicModelId): FoundryLanguageModel; embeddingModel(modelId: string): never; imageModel(modelId: string): never; } declare function createFoundryAnthropic(config: FoundryConfig): FoundryAnthropicProvider; export { type FoundryAnthropicProvider, createFoundryAnthropic };