Skip to content

Commit ebd5003

Browse files
committed
more upd testing
1 parent cf42064 commit ebd5003

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

docs/Integration-OpenAI-Plugin.md renamed to docs/Integration-OpenAI-Function.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**OpenAI plugins** are tools that extend the capabilities of ChatGPT by allowing it to access real-time data, perform actions, or connect with external services via APIs. .
1+
**OpenAI functions** are tools that extend the capabilities of ChatGPT by allowing it to access real-time data, perform actions, or connect with external services via APIs. .
22

33
Instead of being limited to its pre-trained knowledge, ChatGPT can use plugins to retrieve up-to-date information (like live weather, stock prices, or databases) or perform tasks (like booking a flight or running a query).
44

@@ -8,10 +8,10 @@ The goal is to turn ChatGPT into a more useful, interactive assistant that can b
88
99
This is to explore:
1010

11-
| Explore | Status |
12-
| --------------------------------------- | -------------------- |
13-
| Nat Lang ALS Access using OpenAI Plugin | Initial Test Running |
14-
| | |
11+
| Explore | Status |
12+
| ------------------------------------------ | -------------------- |
13+
| Nat Lang ALS Access using OpenAI Functions | Initial Test Running |
14+
| | |
1515

1616
A value prop might be summarized: *instantly expose legacy DBs to Natural Language, including critical business logic and security, to simplify user discovery and operation.*
1717

@@ -122,8 +122,6 @@ Retrieval worked:
122122

123123
<br>
124124

125-
126-
127125
### Update: failed to load
128126

129127
We also experimented with update, using `integration/openai_plugin/swagger_3_genai_demo_with_update.json`.
@@ -138,14 +136,18 @@ In path /Customer/{CustomerId}/, method patch, operationId UpdateCustomer_0, req
138136
In path /Customer/{CustomerId}/, method patch, operationId UpdateCustomer_0, skipping function due to errors
139137
```
140138

139+
We requested a revised jasonapi from CHatGPT, which loaded. However, updates are still failing with Invalid Data Object. ChatGPT reports it was sending:
141140

141+
![updt error](images/integration/openai-plugin/upd invalid obj.png)&nbsp;
142142

143143
## Appendices
144144

145145
<br>
146146

147147
### Create ai_plug_in.json
148148

149+
We also looked at openai plugins. These appear to be discontinued.
150+
149151
Prepare `ai_plug_in.json` as shown in this directory. Observe that it It identifies the url for finding the openapi through the tunnel.
150152

151153
Note: both ALS and and `ai_plug_in.json` presume the swagger and api are consistent:

docs/Integration-chatbot.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
**ChatBots** are extensions to team collaboration systems (Microsoft Teams, Slack, DIscord) that can interface to other systems, such as OpenAI Functions for data inquiry / update.
32

43
>For example, in large companies, users spend significant time in such systems to the point it becomes their central UI. So, enabling access to key corporate systems, with a Natural Language interface, is a natural way to simpify business.
@@ -14,25 +13,26 @@ A value prop might be summarized: *instantly expose legacy DBs to Natural Langua
1413

1514
<br>
1615

17-
## Status: Technology Exploration
16+
## Status: Technology Evalution
1817

19-
This is an initial experiment, without automation. Many substantive issues need to be addressed, including but not limited to security, update, etc.
18+
We are solicting reactions to such a capability.
2019

2120
We welcome participation in this exploration. Please contact us via [discord](https://discord.gg/HcGxbBsgRF).
2221

23-
This exploration is changing rapidly. For updates, replace `integration/mcp` from [integration/msp](https://github.com/ApiLogicServer/ApiLogicServer-src/tree/main/api_logic_server_cli/prototypes/nw_no_cust/integration/openai_plugin)
24-
2522
<br>
2623

2724
## Example
2825

2926
✨ Flow example: “Create order for ALFKI with 2 bottles of Chai”:
30-
1. User sends message in Slack/Teams
31-
2. Bot passes message to backend
32-
3. Backend sends message to GPT function-calling endpoint
33-
4. GPT returns function call:
27+
28+
1. User sends message in Slack/Teams
29+
2. Bot passes message to backend
30+
3. Backend sends message to GPT function-calling endpoint
31+
4. GPT returns function call:
32+
3433
→ POST /Order { customer_id: "ALFKI", items: [{product_id: "CHAI", quantity: 2}] }
35-
5. Backend sends API request to your OpenAPI endpoint
36-
6. Backend replies in Slack:
37-
→ “✅ Created order #1024 for ALFKI with 2 items”
3834

35+
5. Backend sends API request to your OpenAPI endpoint
36+
6. Backend replies in Slack:
37+
38+
→ “✅ Created order #1024 for ALFKI with 2 items”
Loading

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ nav:
9393
- "Integration Mapping": Integration-Map.md
9494
- "Kafka Messaging": Integration-Kafka.md
9595
- "MCP Integration": Integration-MCP.md
96-
- "OpenAI Plugin Integration": Integration-OpenAI-Plugin.md
96+
- "OpenAI Function Integration": Integration-OpenAI-Function.md
9797
- "ChatBot Integration": Integration-chatbot.md
9898
- IDE - Customize, Manage:
9999
- "Customize Using Your IDE": IDE-Customize.md

0 commit comments

Comments
 (0)