Skip to content

Commit 2bcf3c5

Browse files
authored
Merge branch 'main' into ppaolucc-mcp-server-may2026-I
2 parents f8571f4 + cc79a2b commit 2bcf3c5

222 files changed

Lines changed: 936418 additions & 399 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ai/generative-ai-service/coding-assistant/README.md

Lines changed: 102 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,22 @@
22

33
A practical guide for configuring Cline to call OCI Generative AI models through OCI's OpenAI-compatible API.
44

5+
Cline is an AI coding assistant that works inside your IDE and can help with day-to-day development tasks such as explaining unfamiliar code, generating new files, refactoring existing logic, writing tests, debugging errors, and summarizing repository structure. By connecting Cline to OCI Generative AI, developers can use OCI-hosted models directly from their coding environment while keeping model access, deployment choices, and enterprise controls within Oracle Cloud Infrastructure.
6+
7+
This setup is useful when teams want AI-assisted development workflows that can use either on-demand OCI Generative AI models for quick setup or Dedicated AI Cluster (DAC)-hosted models for production-grade isolation, performance, and customization.
8+
59
## Overview
610

711
This tutorial walks through configuring Cline to use OCI Generative AI models through the OCI OpenAI-compatible API.
812

913
The process involves:
1014

1115
1. Selecting an OCI Generative AI model
12-
2. Understanding the OCI OpenAI-compatible API endpoint URL
13-
3. Creating an OCI Generative AI API key
14-
4. Configuring Cline with the OCI OpenAI-compatible base URL, API key, and model ID
15-
5. Testing the setup with an example prompt
16+
2. Choosing whether to use the model on demand or from a Dedicated AI Cluster (DAC)
17+
3. Understanding the OCI OpenAI-compatible API endpoint URL
18+
4. Creating an OCI Generative AI API key
19+
5. Configuring Cline with the OCI OpenAI-compatible base URL, API key, and model ID
20+
6. Testing the setup with an example prompt
1621

1722
OCI provides OpenAI-compatible APIs for model inference, including Chat Completions and Responses. This tutorial uses the OCI Generative AI OpenAI-compatible API documented here:
1823

@@ -42,21 +47,30 @@ Example regions include:
4247
- `uk-london-1`
4348
- `eu-frankfurt-1`
4449

45-
The region is used in the OpenAI-compatible base URL.
50+
The region is used in the OpenAI-compatible URL.
4651

47-
Example:
52+
On-demand example:
4853

4954
```text
5055
https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/openai/v1
5156
```
5257

53-
**Important:** Create the OCI Generative AI API key in the same region where you plan to use the model.
58+
DAC Chat Completions example:
59+
60+
```text
61+
https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/openai/v1/chat/completions
62+
```
63+
5464

5565
### 2. Choose a Model
5666

57-
Select the OCI Generative AI model that you want Cline to use.
67+
Select the OCI Generative AI model that you want Cline to use. OCI Generative AI models can be used either on demand or from a Dedicated AI Cluster (DAC). The Cline setup is different for each option, so choose the deployment path first.
68+
69+
#### On-Demand Models
70+
71+
On-demand models are shared, OCI-hosted models that are ready to call directly through the OpenAI-compatible API. This is the simplest setup for testing, prototyping, and lighter usage patterns.
5872

59-
Example model IDs:
73+
Example OCI Model Names:
6074

6175
```text
6276
xai.grok-code-fast-1
@@ -66,20 +80,54 @@ openai.gpt-oss-120b
6680
google.gemini-2.5-flash
6781
```
6882

83+
For on-demand models, the Cline **Model ID** is the OCI Model Name.
84+
85+
#### Dedicated AI Cluster (DAC)-Hosted Models
86+
87+
DAC-hosted models run on dedicated infrastructure in your tenancy. Use a DAC-hosted model when you need production-grade control over model hosting and inference. DACs provide several advantages:
88+
89+
- **Flexibility:** Import supported Hugging Face-format models from Hugging Face or Object Storage, test imported models with shorter commitments, choose fine-tuned or quantized versions, and right-size based on visible hardware specifications.
90+
- **Isolation:** Run workloads on dedicated GPU resources inside your tenancy, which helps protect sensitive data, avoids shared-resource contention, and supports regulated workloads.
91+
- **Predictable latency:** Dedicated infrastructure can provide more stable time-to-first-token and inference response times than shared model endpoints, especially for scaling production applications.
92+
- **Fine-tuning support:** Host fine-tuned models alongside base models, run multiple fine-tuned models on a single cluster, and control model lifecycle and upgrade cadence.
93+
- **Cost efficiency at scale:** For inference-heavy workloads, DACs can reduce effective price per token by keeping dedicated resources highly utilized and hosting multiple models on one cluster.
94+
- **Deployment near data:** Deploy in supported OCI regions, including regulated regions where available, to support data residency, lower latency, and simpler security reviews.
95+
- **Simplified management:** OCI manages the infrastructure while you manage model deployment, scaling, fine-tuning, and application integration.
96+
97+
Before configuring Cline for a DAC-hosted model, make sure the model endpoint is already created and active.
98+
99+
1. Open the OCI Console
100+
2. Navigate to **Analytics & AI -> Generative AI**
101+
3. Go to **Endpoints**
102+
4. Confirm that the endpoint for your DAC-hosted model is **Active**
103+
5. Keep note of the endpoint region and DAC endpoint OCID
104+
105+
For DAC-hosted models, the Cline **Model ID** is the DAC endpoint OCID.
106+
107+
```text
108+
ocid1.generativeaiendpoint.<region>..<unique_id>
109+
```
110+
69111
### 3. Understand the OCI OpenAI-Compatible API Endpoint URL
70112

71-
All calls from Cline go through the OCI OpenAI-compatible API endpoint URL:
113+
Cline uses a different OCI OpenAI-compatible endpoint format depending on whether the model is on demand or DAC-hosted.
114+
115+
For on-demand models, configure the base URL **without** `/chat/completions`:
72116

73117
```text
74118
https://inference.generativeai.<region>.oci.oraclecloud.com/openai/v1
75119
```
76120

77-
This base URL is the endpoint you configure in Cline.
121+
For DAC-hosted models, configure the full Chat Completions URL **with** `/chat/completions`:
122+
123+
```text
124+
https://inference.generativeai.<region>.oci.oraclecloud.com/openai/v1/chat/completions
125+
```
78126

79127
Keep note of the following values:
80128

81129
- Region
82-
- Model ID
130+
- OCI Model Name or DAC endpoint OCID
83131
- Compartment
84132

85133
### 4. Create an OCI Generative AI API Key
@@ -94,18 +142,18 @@ Keep note of the following values:
94142
cline-genai-key
95143
```
96144

97-
6. Optionally add a description
145+
6. Add a description if needed
98146
7. Configure key names and expiration dates
99147
8. Click **Create**
100-
9. Copy one of the generated key values immediately
148+
9. Copy one of the generated key values
101149

102150
OCI Generative AI API keys are service-specific credentials and are different from OCI IAM API keys.
103151

104-
**Important:** Store the key securely. Do not commit it to GitHub or place it in source code.
152+
⚠️ Store the key securely. Do not commit it to GitHub or place it in source code.
105153

106-
### 5. Build the OCI OpenAI-Compatible Base URL
154+
### 5. Build the OCI OpenAI-Compatible URL
107155

108-
Use the following base URL format for Cline:
156+
For on-demand models, use the following base URL format for Cline:
109157

110158
```text
111159
https://inference.generativeai.<region>.oci.oraclecloud.com/openai/v1
@@ -117,6 +165,14 @@ Example for US Midwest Chicago:
117165
https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/openai/v1
118166
```
119167

168+
For DAC-hosted models, use the full Chat Completions URL shown in the DAC section.
169+
170+
Example for UK South London:
171+
172+
```text
173+
https://inference.generativeai.uk-london-1.oci.oraclecloud.com/openai/v1/chat/completions
174+
```
175+
120176

121177
### 6. Configure Cline
122178

@@ -130,29 +186,43 @@ Open VS Code or PyCharm and configure Cline:
130186
OpenAI Compatible
131187
```
132188

133-
4. Set **Base URL** to your OCI base URL:
189+
4. Set **Base URL** to your OCI URL.
190+
191+
For on-demand models:
134192

135193
```text
136194
https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/openai/v1
137195
```
138196

197+
For DAC-hosted models:
198+
199+
```text
200+
https://inference.generativeai.uk-london-1.oci.oraclecloud.com/openai/v1/chat/completions
201+
```
202+
139203
5. Paste your OCI Generative AI API key into the **API Key** field
140-
6. Set **Model ID** to your OCI model ID
204+
6. Set **Model ID** to your OCI Model Name or DAC endpoint OCID
141205

142206
Example:
143207

144208
```text
145209
xai.grok-code-fast-1
146210
```
147211

212+
For a DAC-hosted model, use the DAC endpoint OCID instead:
213+
214+
```text
215+
ocid1.generativeaiendpoint.<region>..<unique_id>
216+
```
217+
148218
7. Save the configuration
149219

150220
### 7. Test the Connection in Cline
151221

152222
Use a simple prompt first:
153223

154224
```text
155-
Write a one-sentence commit message for a change that adds OCI Generative AI support to a Cline tutorial.
225+
Hello. Reply with one sentence confirming that the connection works.
156226
```
157227

158228
If the setup is correct, Cline should return a normal response from the OCI-hosted model.
@@ -186,9 +256,9 @@ Check that:
186256

187257
Check that:
188258

189-
- The model ID is correct
190259
- The model is available in the selected region
191260
- The model supports OpenAI-compatible chat completion requests
261+
- If using a DAC-hosted model, the OCI Generative AI endpoint is active and the Model ID field uses the DAC endpoint OCID
192262

193263
### Authorization Error
194264

@@ -204,19 +274,25 @@ Check that:
204274
Check that:
205275

206276
- The base URL uses the correct region
207-
- The URL ends with:
277+
- For on-demand models, the URL ends with:
208278

209279
```text
210280
/openai/v1
211281
```
212282

283+
- For DAC-hosted models, the URL ends with:
284+
285+
```text
286+
/openai/v1/chat/completions
287+
```
288+
213289
- Your network can reach OCI public endpoints
290+
- Private endpoints are reachable from your machine if using private networking
214291

215292
## Recommended Tests
216293

217294
Run the following tests in Cline:
218295

219-
- Simple math prompt
220296
- Short coding task
221297
- Code explanation prompt
222298
- Refactoring prompt
@@ -229,10 +305,12 @@ If this was only a test setup:
229305

230306
1. Remove the API key from Cline
231307
2. Revoke or deactivate the OCI Generative AI API key
308+
3. If using a DAC-hosted model only for testing, delete the endpoint before deleting the Dedicated AI Cluster
232309

233310
## OCI Services Used
234311

235-
- **OCI Generative AI** - Model inference
312+
- **OCI Generative AI** - Model inference and endpoints
313+
- **OCI Generative AI Dedicated AI Clusters** - Dedicated hosting for deployed models
236314
- **OCI IAM** - Policies and authorization
237315
- **OCI Generative AI API Keys** - API key authentication
238316
- **Cline** - AI coding assistant in VS Code or PyCharm

app-dev/app-integration-and-automation/shared-assets/README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,42 @@ This section contains various examples related to Application Integration: demo
3737

3838
## Demos
3939

40+
- [Developer Coaching - Unlocking AI-Driven Automation with Oracle Integration Cloud](https://youtu.be/uXpIVhgdvDA?si=RSbBr4XS-ep0jUrC)
41+
42+
In this session we have explored how developers can build intelligent, real-world AI workflows using Oracle Integration Cloud together with OCI AI Services, with minimal custom code. Key theme is around Customer Support.
43+
44+
Some of the live demos included:
45+
46+
✅ OCI Language for real-time sentiment analysis of customer interactions
47+
✅ OCI Speech for converting speech to text in automated workflows
48+
✅ Human-in-the-loop escalation
49+
50+
✅ OCI Generative AI for dynamic AI-powered content generation
51+
✅ Native Actions in OIC to orchestrate end-to-end intelligent automation
52+
53+
✅ Exposing Integrations as AI-callable tools with MCP Server in OIC
54+
55+
The focus is on practical implementation patterns for AI-driven customer support scenarios, showing how quickly developers can bring AI capabilities directly into enterprise workflows.
56+
57+
- [Developer Coaching - Beyond Integration - Designing Agentic AI with Oracle Integration & MCP](https://youtu.be/UyU3-TwGSGU?si=X1zCN3CFqksgBl8t)
58+
59+
This session covers following key topic
60+
61+
✅ 𝗔𝗴𝗲𝗻𝘁𝗶𝗰 𝗔𝗜 𝘄𝗶𝘁𝗵 𝗢𝗿𝗮𝗰𝗹𝗲 𝗜𝗻𝘁𝗲𝗴𝗿𝗮𝘁𝗶𝗼𝗻 — How OIC fits into agentic architectures where AI agents reason, select tools, and invoke OIC flows to orchestrate real business processes.
62+
63+
✅ 𝗘𝘅𝗽𝗼𝘀𝗲 𝗜𝗻𝘁𝗲𝗴𝗿𝗮𝘁𝗶𝗼𝗻𝘀 𝗮𝘀 𝗠𝗖𝗣 𝗧𝗼𝗼𝗹𝘀 — Publishing OIC integrations as Model Context Protocol (MCP) endpoints — discoverable, callable, and OAuth-secured for AI agents.
64+
65+
𝗟𝗶𝘃𝗲 𝗠𝗖𝗣 𝘁𝗼𝗼𝗹 𝗰𝗮𝗹𝗹𝘀 𝗱𝗲𝗺𝗼𝗻𝘀𝘁𝗿𝗮𝘁𝗲𝗱 𝗳𝗿𝗼𝗺:
66+
→ 𝗣𝗼𝘀𝘁𝗺𝗮𝗻
67+
→ 𝗟𝗮𝗻𝗴𝗙𝗹𝗼𝘄
68+
→ 𝗙𝘂𝘀𝗶𝗼𝗻 𝗔𝗜 𝗔𝗴𝗲𝗻𝘁 𝗦𝘁𝘂𝗱𝗶𝗼
69+
70+
✅ 𝗢𝗜𝗖 𝗔𝗜 𝗔𝗴𝗲𝗻𝘁 — Building workflows where AI agents invoke multiple integrations to trigger, orchestrate, and enrich enterprise processes.
71+
72+
✅ 𝗥𝗲𝗮𝗹-𝘄𝗼𝗿𝗹𝗱 𝗗𝗲𝗺𝗼𝘀 — Invoice automation using OCI Document Understanding & ERP Cloud, and Expense Report approval with human-in-the-loop workflows.
73+
74+
If you're building new integrations or modernising existing ones, this session offers practical skills to design intelligent, scalable, and secure agentic solutions.
75+
4076
- [Developer Coaching - From Build to Insight Oracle Integration’s Embedded AI Features](https://youtu.be/yXXxpwrbacQ?si=Qs1dabQm_sQHoFGy)
4177

4278
This developer coaching session highlights how Oracle Integration’s embedded AI features simplify and accelerate the design, build, and optimization of integrations.
@@ -294,6 +330,28 @@ This section contains various examples related to Application Integration: demo
294330

295331
## Blogs
296332

333+
-[How We Built an AI Agent on Top of Enterprise Systems](https://www.linkedin.com/pulse/how-we-built-ai-agent-top-enterprise-systems-harris-qureshi-ask2f/)
334+
335+
One thing most enterprise AI projects get wrong:
336+
337+
They connect the AI directly to the API and call it done.
338+
339+
No governance. No audit trail. No identity propagation. No error handling. No way to reach systems securely on-premise, multi-cloud, or legacy.
340+
341+
In Part 1, I wrote about why the future is AI unlocking enterprise systems — not replacing them.
342+
343+
This is Part 2. The architecture. The protocol. Exactly how we built it.
344+
345+
-[The Enterprise AI Moment Nobody Is Talking About](https://www.linkedin.com/pulse/enterprise-ai-moment-nobody-talking-harris-qureshi-ct0nf/)
346+
347+
The future isn't AI replacing your enterprise systems.
348+
349+
It's AI unlocking them.
350+
351+
Most enterprises are sitting on years of data, logic, and investment — and their people still can't get a straight answer without navigating a maze of screens.
352+
353+
That's changing. Here's how — and what to get right before you start.
354+
297355
-[A Beginner’s Guide to Using OCI Generative AI with Oracle Integration](https://www.linkedin.com/pulse/beginners-guide-using-oci-generative-ai-oracle-harris-qureshi-wqcof/)
298356

299357
Designed for Oracle Integration developers, this beginner-friendly guide walks you through:
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
FROM ubuntu:22.04
3+
4+
RUN apt-get update && \
5+
apt-get install -y ffmpeg curl python3 python3-pip unzip && \
6+
pip3 install oci-cli && \
7+
rm -rf /var/lib/apt/lists/*
8+
9+
RUN mkdir -p /video && chmod 777 /video
10+
11+
WORKDIR /video
12+
13+
COPY entrypoint.sh /entrypoint.sh
14+
RUN chmod +x /entrypoint.sh
15+
16+
ENTRYPOINT ["/entrypoint.sh"]

cloud-architecture/apps-to-oci/giu/retail/rms-decision-tree/LICENSE renamed to app-dev/developer-tools-and-lowcode/batch/video-transcoding/LICENSE

File renamed without changes.

0 commit comments

Comments
 (0)