@nyrra/foundry-ai
Version:
Thin Palantir Foundry provider adapters and model catalog for the Vercel AI SDK.
18 lines (15 loc) • 817 B
text/typescript
import { F as FoundryLanguageModel } from '../middleware-Dzb9N4ik.cjs';
import { b as AnthropicModelId } from '../anthropic-models--XMZdaR8.cjs';
import { F as FoundryConfig } from '../types-Bgk00_lZ.cjs';
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 };