paip-sdk
v1.0.0
Published
An unofficial TS SDK for querying language models through the Palantir Foundry AIP LLM Proxy..
Maintainers
Readme
PAIP-SDK
An unofficial TS SDK for querying language models through the Palantir Foundry AIP LLM Proxy.
[!NOTE] This project supports Anthropic, OpenAI, and Google models. xAI, NVIDIA, Snowflake, and open-source models are not supported due to Palantir proxy restrictions.
Popular models are available though, including GPT-5.5, Claude Opus 4.8, and Gemini 3.1 Pro.
Install
[!WARNING] This package is ESM-only and requires a runtime with the Fetch API.
pnpm add paip-sdkConfigure
import { PalantirAIP } from "paip-sdk";
const aip = new PalantirAIP({
baseURL: process.env.PALANTIR_AIP_URL!,
token: process.env.PALANTIR_AIP_API_TOKEN!,
});Examples
See the examples for usage.
Model RIDs
The models export contains language model RIDs verified against the Foundry proxy.
Raw RID strings are also accepted for enrollment-specific models.
Testing
Unit tests:
pnpm testLive model compatibility tests use PALANTIR_AIP_URL and PALANTIR_AIP_API_TOKEN from .env:
pnpm test:models