From c22b84bb1304a3db2ee5f98d8301a1c22e775342 Mon Sep 17 00:00:00 2001 From: Matthias Wolf Date: Fri, 21 Nov 2025 22:18:28 +0100 Subject: [PATCH 1/2] Fix URL in Langchain example. See also #12 that changed the first `base_url` in this README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ae9683..df2a452 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ from oci_openai import OciUserPrincipalAuth # Example for OCI Generative AI endpoint client = OpenAI( api_key="OCI", - base_url="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/openai/v1", + base_url="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/20231130/actions/v1", http_client=httpx.Client( auth=OciUserPrincipalAuth(profile_name="DEFAULT"), headers={"opc-compartment-id": COMPARTMENT_ID} From a3fd4db88c17532b28baf3668457fb60c9047e09 Mon Sep 17 00:00:00 2001 From: Matthias Wolf Date: Fri, 21 Nov 2025 22:20:47 +0100 Subject: [PATCH 2/2] Fix the other URL following the same pattern. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index df2a452..84a8476 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ COMPARTMENT_ID=os.getenv("OCI_COMPARTMENT_ID", "") llm = ChatOpenAI( model="", # for example "xai.grok-4-fast-reasoning" api_key="OCI", - base_url="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/openai/v1", + base_url="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/20231130/actions/v1", http_client=httpx.Client( auth=OciUserPrincipalAuth(profile_name="DEFAULT"), headers={"CompartmentId": COMPARTMENT_ID}