You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that Guardrails may use Third-Party Services such as the [Presidio open-source framework](https://github.com/microsoft/presidio), which are subject to their own terms and conditions and are not developed or verified by OpenAI.
185
+
Please note that Guardrails may use Third-Party Services such as the [Presidio open-source framework](https://github.com/microsoft/presidio), which are subject to their own terms and conditions and are not developed or verified by OpenAI. For more information on configuring guardrails, please visit: [platform.openai.com/guardrails](https://platform.openai.com/guardrails)
195
186
196
187
Developers are responsible for implementing appropriate safeguards to prevent storage or misuse of sensitive or prohibited content (including but not limited to personal data, child sexual abuse material, or other illegal content). OpenAI disclaims liability for any logging or retention of such content by developers. Developers must ensure their systems comply with all applicable data protection and content safety laws, and should avoid persisting any blocked content generated or intercepted by Guardrails.
Test with included demo files in our [github repository](https://github.com/OpenAI-Early-Access/guardrails/tree/main/guardrails/src/guardrails/evals/eval_demo)
18
-
19
17
## Dependencies
20
18
21
19
The evals tool is included with the TypeScript package. No additional dependencies are required.
@@ -41,7 +39,7 @@ The evals tool is included with the TypeScript package. No additional dependenci
41
39
42
40
Export a configuration from the Guardrails Wizard UI and pass its path via `--config-path`.
43
41
44
-
- Open the [Wizard UI](https://oaig-whisper-yonder-xnjpy2.vercel.app/guardrails)
42
+
- Open the [Wizard UI](https://platform.openai.com/guardrails)
45
43
- Configure the guardrails you want to evaluate
46
44
- Use Export to download the config file (JSON)
47
45
- Run the evaluator with `--config-path /path/to/exported_config.json`
@@ -162,4 +160,4 @@ npm run eval -- --config-path config.json --dataset-path data.jsonl --base-url h
162
160
## Next Steps
163
161
164
162
- See the [API Reference](./ref/eval/guardrail_evals.md) for detailed documentation
165
-
- Use [Wizard UI](https://oaig-whisper-yonder-xnjpy2.vercel.app/guardrails) for configuring guardrails without code
163
+
- Use [Wizard UI](https://platform.openai.com/guardrails) for configuring guardrails without code
Ready-to-run examples demonstrating Guardrails in various scenarios. See the [`examples/`](https://github.com/OpenAI-Early-Access/guardrails-js/tree/main/examples/) folder for complete implementations.
3
+
Ready-to-run examples demonstrating Guardrails in various scenarios. See the [`examples/`](https://github.com/openai/openai-guardrails-js/tree/main/examples/) folder for complete implementations.
-[local_model.ts](https://github.com/OpenAI-Early-Access/guardrails/tree/main/guardrails-ts/examples/local_model.ts) — OpenAI-compatible local endpoint
Copy file name to clipboardExpand all lines: docs/index.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Guardrails
2
2
3
-
**Guardrails** is a safety framework for LLM applications that automatically validates inputs and outputs using configurable checks. Use the [Guardrails Wizard](https://guardrails-vercel-git-main-openai.vercel.app/guardrails) to create configurations, then drop in our client classes for automatic validation.
3
+
**Guardrails** is a safety framework for LLM applications that automatically validates inputs and outputs using configurable checks. Use the [Guardrails Wizard](https://platform.openai.com/guardrails) to create configurations, then drop in our client classes for automatic validation.
Copy file name to clipboardExpand all lines: docs/quickstart.md
+28-42Lines changed: 28 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -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
@@ -16,7 +16,7 @@ export OPENAI_API_KEY=sk-...
16
16
17
17
## Create Pipeline Configuration
18
18
19
-
The fastest way is using the [Guardrails Wizard](https://guardrails-vercel-git-main-openai.vercel.app/guardrails) - a no-code tool for creating configurations.
19
+
The fastest way is using the [Guardrails Wizard](https://platform.openai.com/guardrails) - a no-code tool for creating configurations.
20
20
21
21
Or define manually:
22
22
@@ -56,19 +56,11 @@ Replace your OpenAI client with the Guardrails version (`GuardrailsOpenAI`):
56
56
We support `chat.completions.create` and `responses.create`.
Copy file name to clipboardExpand all lines: docs/ref/exceptions-typescript.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Exceptions: TypeScript
2
2
3
-
Exception classes raised by `@guardrails/guardrails-ts`.
3
+
Exception classes raised by `@openai/guardrails`.
4
4
5
5
```typescript
6
6
exportclassGuardrailErrorextendsError {}
@@ -23,6 +23,6 @@ export class GuardrailExecutionError extends GuardrailError {
23
23
-`GuardrailNotFoundError`: referenced guardrail name not registered.
24
24
-`GuardrailExecutionError`: runtime failure within a guardrail (optional `cause`).
25
25
26
-
For the full source, see [guardrails-ts/src/exceptions.ts](https://github.com/OpenAI-Early-Access/guardrails/blob/main/guardrails-ts/src/exceptions.ts) in the repository.
26
+
For the full source, see [src/exceptions.ts](https://github.com/openai/openai-guardrails-js/blob/main/src/exceptions.ts) in the repository.
0 commit comments