This repository was archived by the owner on Jan 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @wrtnio/openai-function-schema" ,
3
- "version" : " 0.2.4 " ,
3
+ "version" : " 0.2.5 " ,
4
4
"description" : " OpenAI LLM function schema from OpenAPI (Swagger) document" ,
5
5
"main" : " lib/index.js" ,
6
6
"typings" : " lib/index.d.ts" ,
37
37
"author" : " " ,
38
38
"license" : " ISC" ,
39
39
"dependencies" : {
40
- "@nestia/fetcher" : " ^3.10.0 " ,
41
- "@samchon/openapi" : " ^0.4.3 " ,
40
+ "@nestia/fetcher" : " ^3.11.1 " ,
41
+ "@samchon/openapi" : " ^0.4.6 " ,
42
42
"commander" : " ^10.0.0" ,
43
43
"inquirer" : " ^8.2.5" ,
44
- "typia" : " ^6.7.2 "
44
+ "typia" : " ^6.8.0 "
45
45
},
46
46
"devDependencies" : {
47
47
"@nestia/core" : " ^3.10.0" ,
Original file line number Diff line number Diff line change @@ -77,6 +77,33 @@ export interface IOpenAiFunction {
77
77
78
78
/**
79
79
* List of parameter schemas.
80
+ *
81
+ * If you've configured {@link IOpenAiDocument.IOptions.keyword} (as `true`),
82
+ * number of {@link IOpenAiFunction.parameters} are always 1 and the first parameter's
83
+ * type is always {@link IOpenAiSchema.IObject}. The properties' rule is:
84
+ *
85
+ * - `pathParameters`: Path parameters of {@link IMigrateRoute.parameters}
86
+ * - `query`: Query parameter of {@link IMigrateRoute.query}
87
+ * - `body`: Body parameter of {@link IMigrateRoute.body}
88
+ *
89
+ * ```typescript
90
+ * {
91
+ * ...pathParameters,
92
+ * query,
93
+ * body,
94
+ * }
95
+ * ```
96
+ *
97
+ * Otherwise, the parameters would be multiple, and the sequence of the parameters
98
+ * are following below rules:
99
+ *
100
+ * ```typescript
101
+ * [
102
+ * ...pathParameters,
103
+ * ...(query ? [query] : []),
104
+ * ...(body ? [body] : []),
105
+ * ]
106
+ * ```
80
107
*/
81
108
parameters : IOpenAiSchema [ ] ;
82
109
You can’t perform that action at this time.
0 commit comments