@@ -5,7 +5,7 @@ Get started with Guardrails TypeScript in minutes. Guardrails provides drop-in r
5
5
## Install
6
6
7
7
``` bash
8
- npm install @guardrails /guardrails-ts
8
+ npm install @openai /guardrails
9
9
```
10
10
11
11
## Set API Key
@@ -56,7 +56,7 @@ Replace your OpenAI client with the Guardrails version (`GuardrailsOpenAI`):
56
56
We support ` chat.completions.create ` and ` responses.create ` .
57
57
58
58
``` typescript
59
- import { GuardrailsOpenAI } from ' @guardrails /guardrails-ts ' ;
59
+ import { GuardrailsOpenAI } from ' @openai /guardrails' ;
60
60
61
61
async function main() {
62
62
// Use GuardrailsOpenAI instead of OpenAI
@@ -116,7 +116,7 @@ const client = await GuardrailsOpenAI.create(
116
116
For OpenAI Agents SDK users, we provide ` GuardrailAgent ` as a drop-in replacement:
117
117
118
118
``` typescript
119
- import { GuardrailAgent } from ' @guardrails /guardrails-ts ' ;
119
+ import { GuardrailAgent } from ' @openai /guardrails' ;
120
120
import { Runner } from ' @openai/agents' ;
121
121
122
122
// Create agent with guardrails automatically configured
@@ -137,7 +137,7 @@ const result = await Runner.run(agent, "Hello, can you help me?");
137
137
Use the Azure-specific client:
138
138
139
139
``` typescript
140
- import { GuardrailsAzureOpenAI } from ' @guardrails /guardrails-ts ' ;
140
+ import { GuardrailsAzureOpenAI } from ' @openai /guardrails' ;
141
141
142
142
const client = await GuardrailsAzureOpenAI .create (
143
143
' ./guardrails_config.json' ,
@@ -154,7 +154,7 @@ const client = await GuardrailsAzureOpenAI.create(
154
154
Works with any OpenAI-compatible API:
155
155
156
156
``` typescript
157
- import { GuardrailsOpenAI } from ' @guardrails /guardrails-ts ' ;
157
+ import { GuardrailsOpenAI } from ' @openai /guardrails' ;
158
158
159
159
// Local Ollama model
160
160
const client = await GuardrailsOpenAI .create (
0 commit comments