Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c446853

Browse files
author
FalkWolsky
committed
Enabling OpenAI and Version-Update
1 parent 86de505 commit c446853

File tree

4 files changed

+33327
-8260
lines changed

4 files changed

+33327
-8260
lines changed

‎server/node-service/src/plugins/openAi/index.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ import { ConfigToType, DataSourcePlugin } from "lowcoder-sdk/dataSource";
66
import { runOpenApi } from "../openApi";
77
import { parseOpenApi, ParseOpenApiOptions } from "../openApi/parse";
88

9-
const spec = readYaml(path.join(__dirname, "./openAi.yaml"));
9+
const spec_1_2_0 = readYaml(path.join(__dirname, "./openAI_v1.2.0.yaml"));
10+
const spec_2_3_0 = readYaml(path.join(__dirname, "./openAI_v2.3.0.yaml"));
11+
1012
const specs = {
11-
"v1.0": spec as OpenAPIV3.Document,
13+
"v1.2.0": spec_1_2_0,
14+
"v2.3.0": spec_2_3_0,
1215
}
1316

1417
const dataSourceConfig = {
@@ -28,7 +31,7 @@ const dataSourceConfig = {
2831
key: "specVersion",
2932
type: "select",
3033
tooltip: "Version of the spec file.",
31-
placeholder: "v1.0",
34+
placeholder: "v2.3",
3235
options: specsToOptions(specs)
3336
},
3437
],
File renamed without changes.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /