Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Add compliance protection to your LLM calls in 3 lines of code.
npm install @complior/sdk
import { complior } from '@complior/sdk'; import OpenAI from 'openai'; const client = complior(new OpenAI()); const response = await client.chat.completions.create({ model: 'gpt-4', messages: [{ role: 'user', content: userInput }], });
import { complior } from '@complior/sdk'; import Anthropic from '@anthropic-ai/sdk'; const client = complior(new Anthropic()); const response = await client.messages.create({ model: 'claude-3-5-sonnet-20241022', messages: [{ role: 'user', content: userInput }], });
import { complior } from '@complior/sdk'; import { openai } from '@ai-sdk/openai'; import { generateText } from 'ai'; const client = complior(openai); const { text } = await generateText({ model: client('gpt-4'), prompt: userInput, });
prohibited
sanitize
disclosure
const client = complior(new OpenAI(), { hooks: ['prohibited', 'sanitize', 'disclosure', 'bias', 'escalation'], disclosure: { text: 'This response was generated by AI.', languages: ['en', 'de', 'fr', 'es'], }, });