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