Skip to content

Commit 2bb2732

Browse files
authored
Merge branch 'master' into issue-13319
2 parents 112909a + ec4432c commit 2bb2732

File tree

180 files changed

+6576
-447
lines changed

Some content is hidden

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

180 files changed

+6576
-447
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import { defineApp } from "@pipedream/types";
2-
3-
export default defineApp({
1+
export default {
42
type: "app",
5-
app: "writer",
3+
app: "claris_filemaker_server_admin_api",
64
propDefinitions: {},
75
methods: {
86
// this.$auth contains connected account data
97
authKeys() {
108
console.log(Object.keys(this.$auth));
119
},
1210
},
13-
});
11+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/claris_filemaker_server_admin_api",
3+
"version": "0.0.1",
4+
"description": "Pipedream Claris FileMaker Server - Admin API Components",
5+
"main": "claris_filemaker_server_admin_api.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"claris_filemaker_server_admin_api"
9+
],
10+
"homepage": "https://pipedream.com/apps/claris_filemaker_server_admin_api",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import { defineApp } from "@pipedream/types";
2-
3-
export default defineApp({
1+
export default {
42
type: "app",
5-
app: "google_appsheet",
3+
app: "claris_filemaker_server_data_api",
64
propDefinitions: {},
75
methods: {
86
// this.$auth contains connected account data
97
authKeys() {
108
console.log(Object.keys(this.$auth));
119
},
1210
},
13-
});
11+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/claris_filemaker_server_data_api",
3+
"version": "0.0.1",
4+
"description": "Pipedream Claris FileMaker Server Data API Components",
5+
"main": "claris_filemaker_server_data_api.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"claris_filemaker_server_data_api"
9+
],
10+
"homepage": "https://pipedream.com/apps/claris_filemaker_server_data_api",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "current_rms",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/current_rms",
3+
"version": "0.0.1",
4+
"description": "Pipedream Current RMS Components",
5+
"main": "current_rms.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"current_rms"
9+
],
10+
"homepage": "https://pipedream.com/apps/current_rms",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
import { RESPONSE_FORMAT_TYPE_OPTIONS } from "../../common/constants.mjs";
2+
import { parseObject } from "../../common/util.mjs";
3+
import deepseek from "../../deepseek.app.mjs";
4+
5+
export default {
6+
key: "deepseek-create-chat-completion",
7+
name: "Create Chat Completion",
8+
description: "Creates a chat completion using the DeepSeek API. [See the documentation](https://api-docs.deepseek.com/api/create-chat-completion)",
9+
version: "0.0.1",
10+
type: "action",
11+
props: {
12+
deepseek,
13+
messages: {
14+
type: "string[]",
15+
label: "Messages",
16+
description: "The messages for the chat conversation as JSON strings. Each message should be a JSON string like '{\"role\": \"user\", \"content\": \"Hello!\"}'. [See the documentation](https://api-docs.deepseek.com/api/create-chat-completion) for further details.",
17+
},
18+
frequencyPenalty: {
19+
type: "string",
20+
label: "Frequency Penalty",
21+
description: "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.",
22+
optional: true,
23+
},
24+
maxTokens: {
25+
type: "integer",
26+
label: "Max Tokens",
27+
description: "Integer between 1 and 8192. The maximum number of tokens that can be generated in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length. If `max_tokens` is not specified, the default value 4096 is used.",
28+
optional: true,
29+
},
30+
presencePenalty: {
31+
type: "string",
32+
label: "Presence Penalty",
33+
description: "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.",
34+
optional: true,
35+
},
36+
responseFormatType: {
37+
type: "string",
38+
label: "Response Format Type",
39+
description: "The format that the model must output. Setting to JSON Object enables JSON Output, which guarantees the message the model generates is valid JSON.",
40+
options: RESPONSE_FORMAT_TYPE_OPTIONS,
41+
optional: true,
42+
},
43+
stop: {
44+
type: "string[]",
45+
label: "Stop Sequences",
46+
description: "Up to 16 sequences where the API will stop generating further tokens.",
47+
optional: true,
48+
},
49+
stream: {
50+
type: "boolean",
51+
label: "Stream",
52+
description: "If set, partial message deltas will be sent. Tokens will be sent as data-only server-sent events (SSE) as they become available, with the stream terminated by a `data: [DONE]` message.",
53+
optional: true,
54+
reloadProps: true,
55+
},
56+
streamIncludeUsage: {
57+
type: "string",
58+
label: "Stream Include Usage",
59+
description: "If set, an additional chunk will be streamed before the `data: [DONE]` message. The `usage` field on this chunk shows the token usage statistics for the entire request, and the `choices` field will always be an empty array. All other chunks will also include a `usage` field, but with a null value.",
60+
optional: true,
61+
hidden: true,
62+
},
63+
temperature: {
64+
type: "string",
65+
label: "Temperature",
66+
description: "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or Top P but not both.",
67+
optional: true,
68+
},
69+
topP: {
70+
type: "string",
71+
label: "Top P",
72+
description: "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or Temperature but not both.",
73+
optional: true,
74+
},
75+
tools: {
76+
type: "string[]",
77+
label: "Tools",
78+
description: "A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported.",
79+
optional: true,
80+
},
81+
toolChoice: {
82+
type: "string",
83+
label: "Tool Choice",
84+
description: "Controls which (if any) tool is called by the model. [See the documentation](https://api-docs.deepseek.com/api/create-chat-completion) for further details.",
85+
optional: true,
86+
},
87+
logprobs: {
88+
type: "boolean",
89+
label: "Log Probs",
90+
description: "Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the `content` of `message`.",
91+
optional: true,
92+
},
93+
topLogprobs: {
94+
type: "string",
95+
label: "Top Log Probabilities",
96+
description: "An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.",
97+
optional: true,
98+
},
99+
},
100+
async additionalProps(props) {
101+
props.streamIncludeUsage.hidden = !this.stream;
102+
return {};
103+
},
104+
async run({ $ }) {
105+
const response = await this.deepseek.createModelResponse({
106+
$,
107+
data: {
108+
messages: parseObject(this.messages),
109+
model: "deepseek-chat",
110+
frequency_penalty: this.frequencyPenalty && parseInt(this.frequencyPenalty),
111+
max_tokens: this.maxTokens,
112+
presence_penalty: this.presencePenalty && parseInt(this.presencePenalty),
113+
response_format: this.responseFormatType
114+
? {
115+
type: this.responseFormatType,
116+
}
117+
: null,
118+
stop: parseObject(this.stop),
119+
stream: this.stream,
120+
stream_options: this.stream
121+
? {
122+
include_usage: this.streamIncludeUsage,
123+
}
124+
: null,
125+
temperature: this.temperature && parseInt(this.temperature),
126+
top_p: this.topP && parseInt(this.topP),
127+
tools: parseObject(this.tools),
128+
tool_choice: parseObject(this.toolChoice),
129+
logprobs: this.logprobs,
130+
top_logprobs: this.topLogprobs && parseInt(this.topLogprobs),
131+
},
132+
});
133+
$.export("$summary", "Chat completion created");
134+
return response;
135+
},
136+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import deepseek from "../../deepseek.app.mjs";
2+
3+
export default {
4+
key: "deepseek-get-balance",
5+
name: "Get User Balance",
6+
description: "Retrieves the user's current balance. [See the documentation](https://api-docs.deepseek.com/api/get-user-balance)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
deepseek,
11+
},
12+
async run({ $ }) {
13+
const response = await this.deepseek.getUserBalance({
14+
$,
15+
});
16+
$.export("$summary", "Successfully retrieved user balance");
17+
return response;
18+
},
19+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import deepseek from "../../deepseek.app.mjs";
2+
3+
export default {
4+
key: "deepseek-list-models",
5+
name: "List Models",
6+
description: "Lists the currently available models, and provides basic information about each one such as the owner and availability. [See the documentation](https://api-docs.deepseek.com/api/list-models)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
deepseek,
11+
},
12+
async run({ $ }) {
13+
const models = await this.deepseek.listModels({
14+
$,
15+
});
16+
$.export("$summary", "Successfully listed models");
17+
return models;
18+
},
19+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const RESPONSE_FORMAT_TYPE_OPTIONS = [
2+
{
3+
label: "Text",
4+
value: "text",
5+
},
6+
{
7+
label: "JSON Object",
8+
value: "json_object",
9+
},
10+
];

0 commit comments

Comments
 (0)