Skip to content

Commit 5abc52d

Browse files
committed
Changed sync to blocking. Updated platform link
1 parent 36eb128 commit 5abc52d

File tree

14 files changed

+97
-66
lines changed

14 files changed

+97
-66
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ OpenAI Guardrails is a Python package for adding robust, configurable safety and
66

77
## Documentation
88

9-
For full details, advanced usage, and API reference, see here: [OpenAI Guardrails Documentation](https://guardrails.openai.com/docs/).
9+
For full details, advanced usage, and API reference, see here: [OpenAI Guardrails Documentation](https://platform.openai.com/guardrails/docs/).
1010

1111
## Quick Start: Using OpenAI Guardrails (Python)
1212

1313
1. **Generate your guardrail spec JSON**
14-
- Use the [Guardrails web UI](https://guardrails.openai.com/) to create a JSON configuration file describing which guardrails to apply and how to configure them.
14+
- Use the [Guardrails web UI](https://platform.openai.com/guardrails) to create a JSON configuration file describing which guardrails to apply and how to configure them.
1515
- The wizard outputs a file like `guardrail_specs.json`.
1616

1717
2. **Install dependencies**
@@ -57,7 +57,7 @@ For full details, advanced usage, and API reference, see here: [OpenAI Guardrail
5757
- The client will automatically apply all configured guardrails to inputs and outputs.
5858
- If a guardrail is triggered, a `GuardrailTripwireTriggered` exception will be raised. You should handle this exception to gracefully manage blocked or flagged content.
5959

60-
> **Note:** The Guardrails web UI is hosted [here](https://guardrails.openai.com/). You do not need to run the web UI yourself to use the Python package.
60+
> **Note:** The Guardrails web UI is hosted [here](https://platform.openai.com/guardrails). You do not need to run the web UI yourself to use the Python package.
6161

6262
---
6363

docs/agents_sdk_integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ agent = GuardrailAgent(config=JsonString('{"version": 1, ...}'), ...)
8383

8484
## Next Steps
8585

86-
- Use the [Guardrails Wizard](https://guardrails.openai.com/) to generate your configuration
86+
- Use the [Guardrails Wizard](https://platform.openai.com/guardrails) to generate your configuration
8787
- Explore available guardrails for your use case
8888
- Learn about pipeline configuration in our [quickstart](./quickstart.md)
8989
- For more details on the OpenAI Agents SDK, refer to the [Agent SDK documentation](https://openai.github.io/openai-agents-python/).

docs/evals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This installs:
6161

6262
Export a configuration from the Guardrails Wizard UI and pass its path via `--config-path`.
6363

64-
- Open the [Wizard UI](https://guardrails.openai.com/)
64+
- Open the [Wizard UI](https://platform.openai.com/guardrails)
6565
- Configure the guardrails you want to evaluate
6666
- Use Export to download the config file (JSON)
6767
- Run the evaluator with `--config-path /path/to/exported_config.json`
@@ -198,4 +198,4 @@ python guardrail_evals.py \
198198
## Next Steps
199199

200200
- See the [API Reference](./ref/eval/guardrail_evals.md) for detailed documentation
201-
- Use [Wizard UI](https://guardrails.openai.com/) for configuring guardrails without code
201+
- Use [Wizard UI](https://platform.openai.com/guardrails) for configuring guardrails without code

docs/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Ready-to-run examples demonstrating Guardrails in various scenarios. See the [`g
99
- [pii_mask_example.py](https://github.com/openai/openai-guardrails-python/tree/main/examples/basic/pii_mask_example.py) — PII detection and scrubbing
1010
- [structured_outputs_example.py](https://github.com/openai/openai-guardrails-python/tree/main/examples/basic/structured_outputs_example.py) — Using responses.parse with guardrails
1111
- [Streaming](https://github.com/openai/openai-guardrails-python/tree/main/examples/implementation_code/streaming) — Stream output while guardrails run
12-
- [Synchronous](https://github.com/openai/openai-guardrails-python/tree/main/examples/implementation_code/synchronous) — Validate fully before showing output
12+
- [Blocking](https://github.com/openai/openai-guardrails-python/tree/main/examples/implementation_code/blocking) — Validate fully before showing output
1313

1414
## Hallucination Detection Example
1515

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Guardrails
22

3-
**Guardrails** is a safety framework for LLM applications that automatically validates inputs and outputs using configurable checks. Use the [Guardrails Wizard](https://guardrails.openai.com/) 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.
44

55
![Guardrails Wizard](assets/images/guardrails_wizard_screenshot.png)
66

@@ -42,7 +42,7 @@ print(response.llm_response.output_text)
4242

4343
- [Quickstart](./quickstart.md) - Full quickstart guide
4444
- [Examples](./examples.md) - See real implementations
45-
- [Guardrails Wizard](https://guardrails.openai.com/) - Create configurations visually
45+
- [Guardrails Wizard](https://platform.openai.com/guardrails) - Create configurations visually
4646

4747
## Disclaimers
4848

docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export OPENAI_API_KEY=sk-...
2121

2222
## Create Pipeline Configuration
2323

24-
The fastest way is using the [Guardrails Wizard](https://guardrails.openai.com/) - a no-code tool for creating configurations.
24+
The fastest way is using the [Guardrails Wizard](https://platform.openai.com/guardrails) - a no-code tool for creating configurations.
2525

2626
Or define manually:
2727

docs/streaming_output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ response = await client.responses.create(
4747

4848
See complete examples:
4949

50-
- [Non-streaming (synchronous)](https://github.com/openai/openai-guardrails-python/tree/main/examples/implementation_code/synchronous)
50+
- [Non-streaming (blocking)](https://github.com/openai/openai-guardrails-python/tree/main/examples/implementation_code/blocking)
5151
- [Streaming](https://github.com/openai/openai-guardrails-python/tree/main/examples/implementation_code/streaming)
File renamed without changes.

examples/implementation_code/synchronous/synchronous_completions.py renamed to examples/implementation_code/blocking/blocking_completions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Minimal non-streaming implementation with guardrails using the new GuardrailsClient."""
1+
"""Minimal non-streaming (blocking) implementation with guardrails using the new GuardrailsClient."""
22

33
# Please integrate openai-guardrails into my LLM calls.
44

examples/implementation_code/synchronous/synchronous_responses.py renamed to examples/implementation_code/blocking/blocking_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Minimal non-streaming implementation with guardrails using the new GuardrailsClient."""
1+
"""Minimal non-streaming (blocking) implementation with guardrails using the new GuardrailsClient."""
22

33
# Please integrate openai-guardrails into my LLM calls.
44

0 commit comments

Comments
 (0)