UNPKG

@nyrra/foundry-ai

Version:

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

18 lines (15 loc) 808 B
import { wrapLanguageModel } from 'ai'; import { b as AnthropicModelId } from '../anthropic-models-DWSUyRe5.js'; import { F as FoundryConfig } from '../types-q41cp7rO.js'; type FoundryLanguageModel = Parameters<typeof wrapLanguageModel>[0]['model']; interface FoundryAnthropicProvider { (modelId: AnthropicModelId): FoundryLanguageModel; specificationVersion: 'v3'; 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 };