@pipedream/openai 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
OpenAI provides a suite of powerful AI models through its API, enabling developers to integrate advanced natural language processing and generative capabilities into their applications. Here’s an overview of the services offered by OpenAI's API:
|
|
4
4
|
|
|
5
|
+
- [Web search](https://platform.openai.com/docs/guides/tools-web-search)
|
|
6
|
+
- [Function calling](https://platform.openai.com/docs/guides/function-calling)
|
|
5
7
|
- [Text generation](https://platform.openai.com/docs/guides/text-generation)
|
|
6
8
|
- [Embeddings](https://platform.openai.com/docs/guides/embeddings)
|
|
7
9
|
- [Fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)
|
|
@@ -16,13 +18,17 @@ Use Python or Node.js code to make fully authenticated API requests with your Op
|
|
|
16
18
|
|
|
17
19
|
The OpenAI API can be leveraged in a wide range of business contexts to drive efficiency, enhance customer experiences, and innovate product offerings. Here are some specific business use cases for utilizing the OpenAI API:
|
|
18
20
|
|
|
21
|
+
### AI Agent Tools
|
|
22
|
+
|
|
23
|
+
Empower your business with [AI Agent Tools](https://pipedream.com/blog/introducing-enhanced-openai-chat-actions-for-pipedream/#using-pipedream-workflows-as-functions) that act as intelligent, autonomous assistants capable of executing a range of complex tasks.
|
|
24
|
+
|
|
19
25
|
### **Customer Support Automation**
|
|
20
26
|
|
|
21
27
|
Significantly reduce response times and free up human agents to tackle more complex issues by automating customer support ticket responses.
|
|
22
28
|
|
|
23
29
|
### **Content Creation and Management**
|
|
24
30
|
|
|
25
|
-
Utilize AI to generate high-quality content for blogs, articles, product descriptions, and marketing material.
|
|
31
|
+
Utilize AI to generate high-quality content for blogs, articles, product descriptions, and marketing material.
|
|
26
32
|
|
|
27
33
|
### **Personalized Marketing and Advertising**
|
|
28
34
|
|
|
@@ -54,14 +60,10 @@ Name the key `Pipedream` and then save the API key within Pipedream. Now you’r
|
|
|
54
60
|
|
|
55
61
|
## 401 - Invalid Authentication
|
|
56
62
|
|
|
57
|
-
---
|
|
58
|
-
|
|
59
63
|
Ensure the correct [API key](https://platform.openai.com/account/api-keys) and requesting organization are being used.
|
|
60
64
|
|
|
61
65
|
## 401 - Incorrect API key provided
|
|
62
66
|
|
|
63
|
-
---
|
|
64
|
-
|
|
65
67
|
Ensure the API key used is correct or [generate a new one](https://platform.openai.com/account/api-keys) and then reconnect it to Pipedream.
|
|
66
68
|
|
|
67
69
|
## 401 - You must be a member of an organization to use the API
|
|
@@ -74,8 +76,6 @@ You are accessing the API from an unsupported country, region, or territory.
|
|
|
74
76
|
|
|
75
77
|
## 429 - Rate limit reached for requests
|
|
76
78
|
|
|
77
|
-
---
|
|
78
|
-
|
|
79
79
|
You are sending requests too quickly. Pace your requests. Read the OpenAI [Rate limit guide](https://platform.openai.com/docs/guides/rate-limits). Use [Pipedream Concurrency and Throttling](https://pipedream.com/docs/workflows/concurrency-and-throttling) settings to control the frequency of API calls to OpenAI.
|
|
80
80
|
|
|
81
81
|
## 429 - You exceeded your current quota, please check your plan and billing details
|
|
@@ -5,7 +5,7 @@ import constants from "../../common/constants.mjs";
|
|
|
5
5
|
export default {
|
|
6
6
|
...common,
|
|
7
7
|
name: "Chat using Functions",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.4",
|
|
9
9
|
key: "openai-chat-using-functions",
|
|
10
10
|
description: "Chat with your models and allow them to invoke functions. Optionally, you can build and invoke workflows as functions. [See the documentation](https://platform.openai.com/docs/guides/function-calling)",
|
|
11
11
|
type: "action",
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
alert: {
|
|
15
15
|
type: "alert",
|
|
16
16
|
alertType: "info",
|
|
17
|
-
content: "Provide function names and parameters, and the model will either answer the question directly or decide to invoke one of the functions, returning a function call that adheres to your specified schema. Add a custom code step that includes all available functions which can be invoked based on the model's response - [you can even build an entire workflow as a function](https://pipedream.com/docs/workflows/building-workflows/code/nodejs/#invoke-another-workflow)! Once the appropriate function or workflow is executed, continue the overall execution or pass the result back to the model for further analysis. For more details, [see this guide](https://platform.openai.com/docs/guides/function-calling?api-mode=responses#overview).",
|
|
17
|
+
content: "Provide function names and parameters, and the model will either answer the question directly or decide to invoke one of the functions, returning a function call that adheres to your specified schema. Add a custom code step that includes all available functions which can be invoked based on the model's response - [you can even build an entire workflow as a function](https://pipedream.com/docs/workflows/building-workflows/code/nodejs/#invoke-another-workflow)! Once the appropriate function or workflow is executed, continue the overall execution or pass the result back to the model for further analysis. For more details, [see this guide](https://platform.openai.com/docs/guides/function-calling?api-mode=responses#overview) and this [walkthrough](https://pipedream.com/blog/introducing-enhanced-openai-chat-actions-for-pipedream/#using-pipedream-workflows-as-functions).",
|
|
18
18
|
},
|
|
19
19
|
modelId: {
|
|
20
20
|
propDefinition: [
|