@@ -5,7 +5,7 @@ Get started with Guardrails TypeScript in minutes. Guardrails provides drop-in r
55## Install
66
77``` bash
8- npm install @guardrails /guardrails-ts
8+ npm install @openai /guardrails
99```
1010
1111## Set API Key
@@ -56,7 +56,7 @@ Replace your OpenAI client with the Guardrails version (`GuardrailsOpenAI`):
5656We support ` chat.completions.create ` and ` responses.create ` .
5757
5858``` typescript
59- import { GuardrailsOpenAI } from ' @guardrails /guardrails-ts ' ;
59+ import { GuardrailsOpenAI } from ' @openai /guardrails' ;
6060
6161async function main() {
6262 // Use GuardrailsOpenAI instead of OpenAI
@@ -116,7 +116,7 @@ const client = await GuardrailsOpenAI.create(
116116For OpenAI Agents SDK users, we provide ` GuardrailAgent ` as a drop-in replacement:
117117
118118``` typescript
119- import { GuardrailAgent } from ' @guardrails /guardrails-ts ' ;
119+ import { GuardrailAgent } from ' @openai /guardrails' ;
120120import { Runner } from ' @openai/agents' ;
121121
122122// Create agent with guardrails automatically configured
@@ -137,7 +137,7 @@ const result = await Runner.run(agent, "Hello, can you help me?");
137137Use the Azure-specific client:
138138
139139``` typescript
140- import { GuardrailsAzureOpenAI } from ' @guardrails /guardrails-ts ' ;
140+ import { GuardrailsAzureOpenAI } from ' @openai /guardrails' ;
141141
142142const client = await GuardrailsAzureOpenAI .create (
143143 ' ./guardrails_config.json' ,
@@ -154,7 +154,7 @@ const client = await GuardrailsAzureOpenAI.create(
154154Works with any OpenAI-compatible API:
155155
156156``` typescript
157- import { GuardrailsOpenAI } from ' @guardrails /guardrails-ts ' ;
157+ import { GuardrailsOpenAI } from ' @openai /guardrails' ;
158158
159159// Local Ollama model
160160const client = await GuardrailsOpenAI .create (
0 commit comments