@webtypen/webframez-core 0.3.44 → 0.3.45
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.
|
@@ -57,6 +57,7 @@ export declare function apiFunctionParamToJsonSchema(definition: ApiFunctionPara
|
|
|
57
57
|
anyOf?: undefined;
|
|
58
58
|
"x-webframez-type"?: undefined;
|
|
59
59
|
"x-openai-file-parameter"?: undefined;
|
|
60
|
+
"x-openai-file-arg-rewrite"?: undefined;
|
|
60
61
|
enum?: undefined;
|
|
61
62
|
} | {
|
|
62
63
|
type: string;
|
|
@@ -65,6 +66,7 @@ export declare function apiFunctionParamToJsonSchema(definition: ApiFunctionPara
|
|
|
65
66
|
anyOf?: undefined;
|
|
66
67
|
"x-webframez-type"?: undefined;
|
|
67
68
|
"x-openai-file-parameter"?: undefined;
|
|
69
|
+
"x-openai-file-arg-rewrite"?: undefined;
|
|
68
70
|
enum?: undefined;
|
|
69
71
|
} | {
|
|
70
72
|
type: string;
|
|
@@ -73,6 +75,7 @@ export declare function apiFunctionParamToJsonSchema(definition: ApiFunctionPara
|
|
|
73
75
|
anyOf?: undefined;
|
|
74
76
|
"x-webframez-type"?: undefined;
|
|
75
77
|
"x-openai-file-parameter"?: undefined;
|
|
78
|
+
"x-openai-file-arg-rewrite"?: undefined;
|
|
76
79
|
enum?: undefined;
|
|
77
80
|
} | {
|
|
78
81
|
anyOf: ({
|
|
@@ -122,6 +125,7 @@ export declare function apiFunctionParamToJsonSchema(definition: ApiFunctionPara
|
|
|
122
125
|
})[];
|
|
123
126
|
"x-webframez-type": string;
|
|
124
127
|
"x-openai-file-parameter": boolean;
|
|
128
|
+
"x-openai-file-arg-rewrite": boolean;
|
|
125
129
|
type?: undefined;
|
|
126
130
|
pattern?: undefined;
|
|
127
131
|
items?: undefined;
|
|
@@ -134,6 +138,7 @@ export declare function apiFunctionParamToJsonSchema(definition: ApiFunctionPara
|
|
|
134
138
|
anyOf?: undefined;
|
|
135
139
|
"x-webframez-type"?: undefined;
|
|
136
140
|
"x-openai-file-parameter"?: undefined;
|
|
141
|
+
"x-openai-file-arg-rewrite"?: undefined;
|
|
137
142
|
};
|
|
138
143
|
export declare function toApiFunctionHttpResult(res: Response, result: any): Response;
|
|
139
144
|
export declare function toApiFunctionPayload(result: any): any;
|
|
@@ -325,6 +325,7 @@ function apiFunctionParamToJsonSchema(definition) {
|
|
|
325
325
|
],
|
|
326
326
|
"x-webframez-type": "file",
|
|
327
327
|
"x-openai-file-parameter": true,
|
|
328
|
+
"x-openai-file-arg-rewrite": true,
|
|
328
329
|
};
|
|
329
330
|
}
|
|
330
331
|
if (type === "option" && Array.isArray(definition.options) && definition.options.length > 0) {
|
package/package.json
CHANGED