bug fix. PROMPT OK

This commit is contained in:
2026-03-10 21:01:32 -03:00
parent 612fb30af6
commit 761606f5d1
3 changed files with 27 additions and 2 deletions

View File

@@ -381,6 +381,10 @@ By putting an OpenAI-compatible API in front of OCI, you get:
- ✅ Streaming compatibility (simulated if OCI returns full text) - ✅ Streaming compatibility (simulated if OCI returns full text)
- ✅ Governance inside your tenancy - ✅ Governance inside your tenancy
![img_11.png](images/img_11.png)
![img_12.png](images/img_12.png)
--- ---
## Requirements ## Requirements

View File

@@ -22,10 +22,10 @@ import requests
OCI_CONFIG_FILE = os.getenv("OCI_CONFIG_FILE", os.path.expanduser("~/.oci/config")) OCI_CONFIG_FILE = os.getenv("OCI_CONFIG_FILE", os.path.expanduser("~/.oci/config"))
OCI_PROFILE = os.getenv("OCI_PROFILE", "DEFAULT") OCI_PROFILE = os.getenv("OCI_PROFILE", "DEFAULT")
OCI_COMPARTMENT_ID = os.getenv("OCI_COMPARTMENT_ID", "<YOUR_COMPARTMENT_ID>") OCI_COMPARTMENT_ID = os.getenv("OCI_COMPARTMENT_ID", "ocid1.compartment.oc1..aaaaaaaaexpiw4a7dio64mkfv2t273s2hgdl6mgfvvyv7tycalnjlvpvfl3q")
OCI_GENAI_ENDPOINT = os.getenv( OCI_GENAI_ENDPOINT = os.getenv(
"OCI_GENAI_ENDPOINT", "OCI_GENAI_ENDPOINT",
"https://inference.generativeai.<region>.oci.oraclecloud.com" "https://inference.generativeai.us-chicago-1.oci.oraclecloud.com"
) )
if not OCI_COMPARTMENT_ID: if not OCI_COMPARTMENT_ID:
raise RuntimeError("OCI_COMPARTMENT_ID not defined") raise RuntimeError("OCI_COMPARTMENT_ID not defined")

21
requirements.txt Normal file
View File

@@ -0,0 +1,21 @@
fastapi
uvicorn
gunicorn
pydantic
requests
httpx
python-dotenv
oci
openai
diffusers
transformers
accelerate
safetensors
torch
python-pptx
pillow
orjson
tenacity
tqdm
xformers
nms