first commit

This commit is contained in:
2026-04-27 07:59:20 -03:00
parent c91a81edf3
commit 1024cdda54
17 changed files with 1344 additions and 5 deletions

View File

@@ -26,8 +26,7 @@ The `oci_openai_proxy.py` acts as a **universal adapter**:
> **Note:** This allows tools like NeMo Guardrails to operate without knowing they are using OCI.
> **More importantly:**
This model enables evolution toward:
**More importantly:** This model enables evolution toward:
- multiple LLMs
- provider fallback
- load balancing
@@ -86,7 +85,7 @@ Guardrails are rules applied at specific stages:
- during processing
- after response (output)
> **Note:** They allow:
**Note:** They allow:
- blocking content
- validating responses
- controlling behavior
@@ -108,7 +107,6 @@ Response
```
---
## Prerequisites
- Python 3.10+
@@ -123,6 +121,12 @@ pip install nemoguardrails fastapi uvicorn
## Running the OCI Proxy
To configure the proxy, you can read more here:
[Integrating OpenClaw with Oracle Cloud Generative AI (OCI)
](https://github.com/hoshikawa2/openclaw-oci)
### File: oci_openai_proxy.py
This file is responsible for:
@@ -137,7 +141,7 @@ This file is responsible for:
uvicorn oci_openai_proxy:app --host 0.0.0.0 --port 8051
```
> **Note:** Available endpoint:
**Available endpoint:**
```
http://localhost:8051/v1/chat/completions
@@ -308,6 +312,9 @@ This model allows:
## References
- [Integrating OpenClaw with Oracle Cloud Generative AI (OCI)
](https://github.com/hoshikawa2/openclaw-oci)
- [NeMo Guardrails Library Configuration Overview](https://docs.nvidia.com/nemo/guardrails/latest/configure-rails/overview.html)
Overview of how to structure the LLM control system