@alicloud/qweneduaisuite20261102 2.0.0 → 3.0.0
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/dist/client.d.ts +41 -41
- package/dist/client.js +50 -60
- package/dist/client.js.map +1 -1
- package/dist/models/CreateEduHomeworkCorrectSubmitRequest.d.ts +10 -7
- package/dist/models/CreateEduHomeworkCorrectSubmitRequest.js.map +1 -1
- package/dist/models/CreateEduHomeworkCorrectSubmitResponseBody.d.ts +11 -11
- package/dist/models/CreateEduProblemSolveRequest.d.ts +7 -9
- package/dist/models/CreateEduProblemSolveRequest.js.map +1 -1
- package/dist/models/CreateEduProblemSolveResponseBody.d.ts +12 -12
- package/dist/models/model.d.ts +0 -1
- package/dist/models/model.js +1 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +50 -62
- package/src/models/CreateEduHomeworkCorrectSubmitRequest.ts +10 -7
- package/src/models/CreateEduHomeworkCorrectSubmitResponseBody.ts +11 -11
- package/src/models/CreateEduProblemSolveRequest.ts +7 -9
- package/src/models/CreateEduProblemSolveResponseBody.ts +12 -12
- package/src/models/model.ts +0 -1
- package/dist/models/CreateEduProblemSolveShrinkRequest.d.ts +0 -26
- package/dist/models/CreateEduProblemSolveShrinkRequest.js +0 -60
- package/dist/models/CreateEduProblemSolveShrinkRequest.js.map +0 -1
- package/src/models/CreateEduProblemSolveShrinkRequest.ts +0 -41
package/dist/client.d.ts
CHANGED
|
@@ -49,12 +49,12 @@ export default class Client extends OpenApi {
|
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
51
|
* ## Request description
|
|
52
|
-
* - This operation
|
|
53
|
-
* - You can submit the image by using `imageBase64` or `imageUrl`. `imageBase64`
|
|
54
|
-
* - The optional `dewarp`
|
|
52
|
+
* - This operation is used to submit a homework image to the server for question segmentation, recognition, and grading.
|
|
53
|
+
* - You can submit the image by using `imageBase64` or `imageUrl`. `imageBase64` is preferred.
|
|
54
|
+
* - The optional parameter `dewarp` specifies whether to correct the image distortion. Default value: `true`.
|
|
55
55
|
* - Provide `requestId` to facilitate troubleshooting and reconciliation.
|
|
56
|
-
* - Image size limit: The Base64-encoded image
|
|
57
|
-
* - All requests and responses
|
|
56
|
+
* - Image size limit: The Base64-encoded image cannot exceed 15 MB.
|
|
57
|
+
* - All requests and responses are in JSON format.
|
|
58
58
|
*
|
|
59
59
|
* @param request - CreateEduHomeworkCorrectSubmitRequest
|
|
60
60
|
* @param headers - map
|
|
@@ -69,12 +69,12 @@ export default class Client extends OpenApi {
|
|
|
69
69
|
*
|
|
70
70
|
* @remarks
|
|
71
71
|
* ## Request description
|
|
72
|
-
* - This operation
|
|
73
|
-
* - You can submit the image by using `imageBase64` or `imageUrl`. `imageBase64`
|
|
74
|
-
* - The optional `dewarp`
|
|
72
|
+
* - This operation is used to submit a homework image to the server for question segmentation, recognition, and grading.
|
|
73
|
+
* - You can submit the image by using `imageBase64` or `imageUrl`. `imageBase64` is preferred.
|
|
74
|
+
* - The optional parameter `dewarp` specifies whether to correct the image distortion. Default value: `true`.
|
|
75
75
|
* - Provide `requestId` to facilitate troubleshooting and reconciliation.
|
|
76
|
-
* - Image size limit: The Base64-encoded image
|
|
77
|
-
* - All requests and responses
|
|
76
|
+
* - Image size limit: The Base64-encoded image cannot exceed 15 MB.
|
|
77
|
+
* - All requests and responses are in JSON format.
|
|
78
78
|
*
|
|
79
79
|
* @param request - CreateEduHomeworkCorrectSubmitRequest
|
|
80
80
|
* @returns CreateEduHomeworkCorrectSubmitResponse
|
|
@@ -84,68 +84,68 @@ export default class Client extends OpenApi {
|
|
|
84
84
|
* Provides question resolution services by using image URLs or Base64 encoding.
|
|
85
85
|
*
|
|
86
86
|
* @remarks
|
|
87
|
-
* ## Request
|
|
88
|
-
* - This API
|
|
89
|
-
* -
|
|
87
|
+
* ## Request instructions
|
|
88
|
+
* - This API retrieves question resolution results by using the URL or Base64 encoding of a question image.
|
|
89
|
+
* - Only a single image is supported per request, and the image format must be JPG, JPEG, or PNG.
|
|
90
90
|
* - The image must be clear and complete. Avoid tilted, obscured, or irrelevant content.
|
|
91
91
|
* - Each request can process only one image. Multi-image or plain text requests are not supported.
|
|
92
|
-
* - The recommended image size is up to 1 MB, with a maximum of 10 MB. The
|
|
93
|
-
* -
|
|
94
|
-
* - The user_id
|
|
95
|
-
* -
|
|
96
|
-
* - A successful response returns the question resolution process through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
92
|
+
* - The recommended image size is up to 1 MB, with a maximum limit of 10 MB. The width and height of the image must not exceed 8,000 pixels, and the total number of pixels must not exceed 2.6 million.
|
|
93
|
+
* - Use the HTTPS protocol to call the API and provide image URLs.
|
|
94
|
+
* - The user_id must be an anonymized identifier. Do not pass direct identity information such as names or phone numbers.
|
|
95
|
+
* - This API uses the HTTP POST method combined with Server-Sent Events (SSE) streaming response technology. The client must read the response event by event and must not wait for the connection to close before reading the entire response.
|
|
96
|
+
* - A successful response returns the question resolution process step by step through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
97
97
|
* - For retryable errors such as TOO_MANY_ACTIVE_STREAMS, use an exponential backoff strategy to retry the request.
|
|
98
|
-
* - Set a reasonable timeout period
|
|
98
|
+
* - Set a reasonable timeout period for the client, which must be at least 3 minutes, and ensure that the proxy layer does not cache SSE responses.
|
|
99
99
|
*
|
|
100
|
-
* @param
|
|
100
|
+
* @param request - CreateEduProblemSolveRequest
|
|
101
101
|
* @param headers - map
|
|
102
102
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
103
103
|
* @returns CreateEduProblemSolveResponse
|
|
104
104
|
*/
|
|
105
|
-
createEduProblemSolveWithSSE(
|
|
105
|
+
createEduProblemSolveWithSSE(request: $_model.CreateEduProblemSolveRequest, headers: {
|
|
106
106
|
[key: string]: string;
|
|
107
107
|
}, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.CreateEduProblemSolveResponse, any, unknown>;
|
|
108
108
|
/**
|
|
109
109
|
* Provides question resolution services by using image URLs or Base64 encoding.
|
|
110
110
|
*
|
|
111
111
|
* @remarks
|
|
112
|
-
* ## Request
|
|
113
|
-
* - This API
|
|
114
|
-
* -
|
|
112
|
+
* ## Request instructions
|
|
113
|
+
* - This API retrieves question resolution results by using the URL or Base64 encoding of a question image.
|
|
114
|
+
* - Only a single image is supported per request, and the image format must be JPG, JPEG, or PNG.
|
|
115
115
|
* - The image must be clear and complete. Avoid tilted, obscured, or irrelevant content.
|
|
116
116
|
* - Each request can process only one image. Multi-image or plain text requests are not supported.
|
|
117
|
-
* - The recommended image size is up to 1 MB, with a maximum of 10 MB. The
|
|
118
|
-
* -
|
|
119
|
-
* - The user_id
|
|
120
|
-
* -
|
|
121
|
-
* - A successful response returns the question resolution process through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
117
|
+
* - The recommended image size is up to 1 MB, with a maximum limit of 10 MB. The width and height of the image must not exceed 8,000 pixels, and the total number of pixels must not exceed 2.6 million.
|
|
118
|
+
* - Use the HTTPS protocol to call the API and provide image URLs.
|
|
119
|
+
* - The user_id must be an anonymized identifier. Do not pass direct identity information such as names or phone numbers.
|
|
120
|
+
* - This API uses the HTTP POST method combined with Server-Sent Events (SSE) streaming response technology. The client must read the response event by event and must not wait for the connection to close before reading the entire response.
|
|
121
|
+
* - A successful response returns the question resolution process step by step through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
122
122
|
* - For retryable errors such as TOO_MANY_ACTIVE_STREAMS, use an exponential backoff strategy to retry the request.
|
|
123
|
-
* - Set a reasonable timeout period
|
|
123
|
+
* - Set a reasonable timeout period for the client, which must be at least 3 minutes, and ensure that the proxy layer does not cache SSE responses.
|
|
124
124
|
*
|
|
125
|
-
* @param
|
|
125
|
+
* @param request - CreateEduProblemSolveRequest
|
|
126
126
|
* @param headers - map
|
|
127
127
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
128
128
|
* @returns CreateEduProblemSolveResponse
|
|
129
129
|
*/
|
|
130
|
-
createEduProblemSolveWithOptions(
|
|
130
|
+
createEduProblemSolveWithOptions(request: $_model.CreateEduProblemSolveRequest, headers: {
|
|
131
131
|
[key: string]: string;
|
|
132
132
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateEduProblemSolveResponse>;
|
|
133
133
|
/**
|
|
134
134
|
* Provides question resolution services by using image URLs or Base64 encoding.
|
|
135
135
|
*
|
|
136
136
|
* @remarks
|
|
137
|
-
* ## Request
|
|
138
|
-
* - This API
|
|
139
|
-
* -
|
|
137
|
+
* ## Request instructions
|
|
138
|
+
* - This API retrieves question resolution results by using the URL or Base64 encoding of a question image.
|
|
139
|
+
* - Only a single image is supported per request, and the image format must be JPG, JPEG, or PNG.
|
|
140
140
|
* - The image must be clear and complete. Avoid tilted, obscured, or irrelevant content.
|
|
141
141
|
* - Each request can process only one image. Multi-image or plain text requests are not supported.
|
|
142
|
-
* - The recommended image size is up to 1 MB, with a maximum of 10 MB. The
|
|
143
|
-
* -
|
|
144
|
-
* - The user_id
|
|
145
|
-
* -
|
|
146
|
-
* - A successful response returns the question resolution process through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
142
|
+
* - The recommended image size is up to 1 MB, with a maximum limit of 10 MB. The width and height of the image must not exceed 8,000 pixels, and the total number of pixels must not exceed 2.6 million.
|
|
143
|
+
* - Use the HTTPS protocol to call the API and provide image URLs.
|
|
144
|
+
* - The user_id must be an anonymized identifier. Do not pass direct identity information such as names or phone numbers.
|
|
145
|
+
* - This API uses the HTTP POST method combined with Server-Sent Events (SSE) streaming response technology. The client must read the response event by event and must not wait for the connection to close before reading the entire response.
|
|
146
|
+
* - A successful response returns the question resolution process step by step through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
147
147
|
* - For retryable errors such as TOO_MANY_ACTIVE_STREAMS, use an exponential backoff strategy to retry the request.
|
|
148
|
-
* - Set a reasonable timeout period
|
|
148
|
+
* - Set a reasonable timeout period for the client, which must be at least 3 minutes, and ensure that the proxy layer does not cache SSE responses.
|
|
149
149
|
*
|
|
150
150
|
* @param request - CreateEduProblemSolveRequest
|
|
151
151
|
* @returns CreateEduProblemSolveResponse
|
package/dist/client.js
CHANGED
|
@@ -145,12 +145,12 @@ class Client extends openapi_core_1.default {
|
|
|
145
145
|
*
|
|
146
146
|
* @remarks
|
|
147
147
|
* ## Request description
|
|
148
|
-
* - This operation
|
|
149
|
-
* - You can submit the image by using `imageBase64` or `imageUrl`. `imageBase64`
|
|
150
|
-
* - The optional `dewarp`
|
|
148
|
+
* - This operation is used to submit a homework image to the server for question segmentation, recognition, and grading.
|
|
149
|
+
* - You can submit the image by using `imageBase64` or `imageUrl`. `imageBase64` is preferred.
|
|
150
|
+
* - The optional parameter `dewarp` specifies whether to correct the image distortion. Default value: `true`.
|
|
151
151
|
* - Provide `requestId` to facilitate troubleshooting and reconciliation.
|
|
152
|
-
* - Image size limit: The Base64-encoded image
|
|
153
|
-
* - All requests and responses
|
|
152
|
+
* - Image size limit: The Base64-encoded image cannot exceed 15 MB.
|
|
153
|
+
* - All requests and responses are in JSON format.
|
|
154
154
|
*
|
|
155
155
|
* @param request - CreateEduHomeworkCorrectSubmitRequest
|
|
156
156
|
* @param headers - map
|
|
@@ -184,7 +184,7 @@ class Client extends openapi_core_1.default {
|
|
|
184
184
|
method: "POST",
|
|
185
185
|
authType: "AK",
|
|
186
186
|
style: "ROA",
|
|
187
|
-
reqBodyType: "
|
|
187
|
+
reqBodyType: "json",
|
|
188
188
|
bodyType: "json",
|
|
189
189
|
});
|
|
190
190
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateEduHomeworkCorrectSubmitResponse({}));
|
|
@@ -194,12 +194,12 @@ class Client extends openapi_core_1.default {
|
|
|
194
194
|
*
|
|
195
195
|
* @remarks
|
|
196
196
|
* ## Request description
|
|
197
|
-
* - This operation
|
|
198
|
-
* - You can submit the image by using `imageBase64` or `imageUrl`. `imageBase64`
|
|
199
|
-
* - The optional `dewarp`
|
|
197
|
+
* - This operation is used to submit a homework image to the server for question segmentation, recognition, and grading.
|
|
198
|
+
* - You can submit the image by using `imageBase64` or `imageUrl`. `imageBase64` is preferred.
|
|
199
|
+
* - The optional parameter `dewarp` specifies whether to correct the image distortion. Default value: `true`.
|
|
200
200
|
* - Provide `requestId` to facilitate troubleshooting and reconciliation.
|
|
201
|
-
* - Image size limit: The Base64-encoded image
|
|
202
|
-
* - All requests and responses
|
|
201
|
+
* - Image size limit: The Base64-encoded image cannot exceed 15 MB.
|
|
202
|
+
* - All requests and responses are in JSON format.
|
|
203
203
|
*
|
|
204
204
|
* @param request - CreateEduHomeworkCorrectSubmitRequest
|
|
205
205
|
* @returns CreateEduHomeworkCorrectSubmitResponse
|
|
@@ -213,36 +213,31 @@ class Client extends openapi_core_1.default {
|
|
|
213
213
|
* Provides question resolution services by using image URLs or Base64 encoding.
|
|
214
214
|
*
|
|
215
215
|
* @remarks
|
|
216
|
-
* ## Request
|
|
217
|
-
* - This API
|
|
218
|
-
* -
|
|
216
|
+
* ## Request instructions
|
|
217
|
+
* - This API retrieves question resolution results by using the URL or Base64 encoding of a question image.
|
|
218
|
+
* - Only a single image is supported per request, and the image format must be JPG, JPEG, or PNG.
|
|
219
219
|
* - The image must be clear and complete. Avoid tilted, obscured, or irrelevant content.
|
|
220
220
|
* - Each request can process only one image. Multi-image or plain text requests are not supported.
|
|
221
|
-
* - The recommended image size is up to 1 MB, with a maximum of 10 MB. The
|
|
222
|
-
* -
|
|
223
|
-
* - The user_id
|
|
224
|
-
* -
|
|
225
|
-
* - A successful response returns the question resolution process through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
221
|
+
* - The recommended image size is up to 1 MB, with a maximum limit of 10 MB. The width and height of the image must not exceed 8,000 pixels, and the total number of pixels must not exceed 2.6 million.
|
|
222
|
+
* - Use the HTTPS protocol to call the API and provide image URLs.
|
|
223
|
+
* - The user_id must be an anonymized identifier. Do not pass direct identity information such as names or phone numbers.
|
|
224
|
+
* - This API uses the HTTP POST method combined with Server-Sent Events (SSE) streaming response technology. The client must read the response event by event and must not wait for the connection to close before reading the entire response.
|
|
225
|
+
* - A successful response returns the question resolution process step by step through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
226
226
|
* - For retryable errors such as TOO_MANY_ACTIVE_STREAMS, use an exponential backoff strategy to retry the request.
|
|
227
|
-
* - Set a reasonable timeout period
|
|
227
|
+
* - Set a reasonable timeout period for the client, which must be at least 3 minutes, and ensure that the proxy layer does not cache SSE responses.
|
|
228
228
|
*
|
|
229
|
-
* @param
|
|
229
|
+
* @param request - CreateEduProblemSolveRequest
|
|
230
230
|
* @param headers - map
|
|
231
231
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
232
232
|
* @returns CreateEduProblemSolveResponse
|
|
233
233
|
*/
|
|
234
|
-
createEduProblemSolveWithSSE(
|
|
234
|
+
createEduProblemSolveWithSSE(request, headers, runtime) {
|
|
235
235
|
return __asyncGenerator(this, arguments, function* createEduProblemSolveWithSSE_1() {
|
|
236
236
|
var _a, e_1, _b, _c;
|
|
237
|
-
|
|
238
|
-
let request = new $_model.CreateEduProblemSolveShrinkRequest({});
|
|
239
|
-
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
240
|
-
if (!$dara.isNull(tmpReq.query)) {
|
|
241
|
-
request.queryShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.query, "query", "json");
|
|
242
|
-
}
|
|
237
|
+
request.validate();
|
|
243
238
|
let body = {};
|
|
244
|
-
if (!$dara.isNull(request.
|
|
245
|
-
body["query"] = request.
|
|
239
|
+
if (!$dara.isNull(request.query)) {
|
|
240
|
+
body["query"] = request.query;
|
|
246
241
|
}
|
|
247
242
|
if (!$dara.isNull(request.requestId)) {
|
|
248
243
|
body["requestId"] = request.requestId;
|
|
@@ -259,7 +254,7 @@ class Client extends openapi_core_1.default {
|
|
|
259
254
|
method: "POST",
|
|
260
255
|
authType: "AK",
|
|
261
256
|
style: "ROA",
|
|
262
|
-
reqBodyType: "
|
|
257
|
+
reqBodyType: "json",
|
|
263
258
|
bodyType: "json",
|
|
264
259
|
});
|
|
265
260
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
@@ -293,34 +288,29 @@ class Client extends openapi_core_1.default {
|
|
|
293
288
|
* Provides question resolution services by using image URLs or Base64 encoding.
|
|
294
289
|
*
|
|
295
290
|
* @remarks
|
|
296
|
-
* ## Request
|
|
297
|
-
* - This API
|
|
298
|
-
* -
|
|
291
|
+
* ## Request instructions
|
|
292
|
+
* - This API retrieves question resolution results by using the URL or Base64 encoding of a question image.
|
|
293
|
+
* - Only a single image is supported per request, and the image format must be JPG, JPEG, or PNG.
|
|
299
294
|
* - The image must be clear and complete. Avoid tilted, obscured, or irrelevant content.
|
|
300
295
|
* - Each request can process only one image. Multi-image or plain text requests are not supported.
|
|
301
|
-
* - The recommended image size is up to 1 MB, with a maximum of 10 MB. The
|
|
302
|
-
* -
|
|
303
|
-
* - The user_id
|
|
304
|
-
* -
|
|
305
|
-
* - A successful response returns the question resolution process through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
296
|
+
* - The recommended image size is up to 1 MB, with a maximum limit of 10 MB. The width and height of the image must not exceed 8,000 pixels, and the total number of pixels must not exceed 2.6 million.
|
|
297
|
+
* - Use the HTTPS protocol to call the API and provide image URLs.
|
|
298
|
+
* - The user_id must be an anonymized identifier. Do not pass direct identity information such as names or phone numbers.
|
|
299
|
+
* - This API uses the HTTP POST method combined with Server-Sent Events (SSE) streaming response technology. The client must read the response event by event and must not wait for the connection to close before reading the entire response.
|
|
300
|
+
* - A successful response returns the question resolution process step by step through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
306
301
|
* - For retryable errors such as TOO_MANY_ACTIVE_STREAMS, use an exponential backoff strategy to retry the request.
|
|
307
|
-
* - Set a reasonable timeout period
|
|
302
|
+
* - Set a reasonable timeout period for the client, which must be at least 3 minutes, and ensure that the proxy layer does not cache SSE responses.
|
|
308
303
|
*
|
|
309
|
-
* @param
|
|
304
|
+
* @param request - CreateEduProblemSolveRequest
|
|
310
305
|
* @param headers - map
|
|
311
306
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
312
307
|
* @returns CreateEduProblemSolveResponse
|
|
313
308
|
*/
|
|
314
|
-
async createEduProblemSolveWithOptions(
|
|
315
|
-
|
|
316
|
-
let request = new $_model.CreateEduProblemSolveShrinkRequest({});
|
|
317
|
-
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
318
|
-
if (!$dara.isNull(tmpReq.query)) {
|
|
319
|
-
request.queryShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.query, "query", "json");
|
|
320
|
-
}
|
|
309
|
+
async createEduProblemSolveWithOptions(request, headers, runtime) {
|
|
310
|
+
request.validate();
|
|
321
311
|
let body = {};
|
|
322
|
-
if (!$dara.isNull(request.
|
|
323
|
-
body["query"] = request.
|
|
312
|
+
if (!$dara.isNull(request.query)) {
|
|
313
|
+
body["query"] = request.query;
|
|
324
314
|
}
|
|
325
315
|
if (!$dara.isNull(request.requestId)) {
|
|
326
316
|
body["requestId"] = request.requestId;
|
|
@@ -337,7 +327,7 @@ class Client extends openapi_core_1.default {
|
|
|
337
327
|
method: "POST",
|
|
338
328
|
authType: "AK",
|
|
339
329
|
style: "ROA",
|
|
340
|
-
reqBodyType: "
|
|
330
|
+
reqBodyType: "json",
|
|
341
331
|
bodyType: "json",
|
|
342
332
|
});
|
|
343
333
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateEduProblemSolveResponse({}));
|
|
@@ -346,18 +336,18 @@ class Client extends openapi_core_1.default {
|
|
|
346
336
|
* Provides question resolution services by using image URLs or Base64 encoding.
|
|
347
337
|
*
|
|
348
338
|
* @remarks
|
|
349
|
-
* ## Request
|
|
350
|
-
* - This API
|
|
351
|
-
* -
|
|
339
|
+
* ## Request instructions
|
|
340
|
+
* - This API retrieves question resolution results by using the URL or Base64 encoding of a question image.
|
|
341
|
+
* - Only a single image is supported per request, and the image format must be JPG, JPEG, or PNG.
|
|
352
342
|
* - The image must be clear and complete. Avoid tilted, obscured, or irrelevant content.
|
|
353
343
|
* - Each request can process only one image. Multi-image or plain text requests are not supported.
|
|
354
|
-
* - The recommended image size is up to 1 MB, with a maximum of 10 MB. The
|
|
355
|
-
* -
|
|
356
|
-
* - The user_id
|
|
357
|
-
* -
|
|
358
|
-
* - A successful response returns the question resolution process through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
344
|
+
* - The recommended image size is up to 1 MB, with a maximum limit of 10 MB. The width and height of the image must not exceed 8,000 pixels, and the total number of pixels must not exceed 2.6 million.
|
|
345
|
+
* - Use the HTTPS protocol to call the API and provide image URLs.
|
|
346
|
+
* - The user_id must be an anonymized identifier. Do not pass direct identity information such as names or phone numbers.
|
|
347
|
+
* - This API uses the HTTP POST method combined with Server-Sent Events (SSE) streaming response technology. The client must read the response event by event and must not wait for the connection to close before reading the entire response.
|
|
348
|
+
* - A successful response returns the question resolution process step by step through a series of message events and ends with a complete event. If an error occurs, an error event is returned.
|
|
359
349
|
* - For retryable errors such as TOO_MANY_ACTIVE_STREAMS, use an exponential backoff strategy to retry the request.
|
|
360
|
-
* - Set a reasonable timeout period
|
|
350
|
+
* - Set a reasonable timeout period for the client, which must be at least 3 minutes, and ensure that the proxy layer does not cache SSE responses.
|
|
361
351
|
*
|
|
362
352
|
* @param request - CreateEduProblemSolveRequest
|
|
363
353
|
* @returns CreateEduProblemSolveResponse
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,wEAAkD;AAClD,0EAA6C;AAC7C,yDAAkE;AAGlE,wDAA0C;AAC1C,iDAA+B;AAE/B,MAAqB,MAAO,S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,IAAI,OAAO,GAAG,IAAI,KAAK,CAAC,cAAc,CAAC,EAAG,CAAC,CAAC;QAC5C,IAAI,OAAO,GAA8B,EAAG,CAAC;QAC7C,OAAO,MAAM,IAAI,CAAC,wCAAwC,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;CAEF;AAnaD,yBAmaC"}
|
|
@@ -2,31 +2,34 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class CreateEduHomeworkCorrectSubmitRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* Specifies whether to correct the image distortion.
|
|
5
|
+
* Specifies whether to correct the image distortion.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* true
|
|
6
9
|
*/
|
|
7
10
|
dewarp?: boolean;
|
|
8
11
|
/**
|
|
9
12
|
* @remarks
|
|
10
|
-
* The
|
|
13
|
+
* The Base64-encoded image.
|
|
11
14
|
*
|
|
12
15
|
* @example
|
|
13
|
-
*
|
|
16
|
+
* /9j/4AAQSkZJRgABAQAASABIAAD/4QCMRXhpZgAATU0AK...
|
|
14
17
|
*/
|
|
15
18
|
imageBase64?: string;
|
|
16
19
|
/**
|
|
17
20
|
* @remarks
|
|
18
|
-
* The
|
|
21
|
+
* The URL of the image.
|
|
19
22
|
*
|
|
20
23
|
* @example
|
|
21
|
-
* https://
|
|
24
|
+
* https://xxx/xxx.jpg
|
|
22
25
|
*/
|
|
23
26
|
imageUrl?: string;
|
|
24
27
|
/**
|
|
25
28
|
* @remarks
|
|
26
|
-
* The request ID
|
|
29
|
+
* The request ID.
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
|
-
*
|
|
32
|
+
* 019F593F-D6EE-5F44-819A-6CDA127D1637
|
|
30
33
|
*/
|
|
31
34
|
requestId?: string;
|
|
32
35
|
static names(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateEduHomeworkCorrectSubmitRequest.js","sourceRoot":"","sources":["../../src/models/CreateEduHomeworkCorrectSubmitRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"CreateEduHomeworkCorrectSubmitRequest.js","sourceRoot":"","sources":["../../src/models/CreateEduHomeworkCorrectSubmitRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAiCpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1DD,sFA0DC"}
|
|
@@ -58,12 +58,12 @@ export declare class CreateEduHomeworkCorrectSubmitResponseBodyDataQuestionResul
|
|
|
58
58
|
export declare class CreateEduHomeworkCorrectSubmitResponseBodyDataQuestionResultsAnswerResults extends $dara.Model {
|
|
59
59
|
/**
|
|
60
60
|
* @remarks
|
|
61
|
-
* The coordinate group of the user\\"s answering area. It generally contains four vertex coordinates arranged in the order of top-left, top-right, bottom-right, and bottom-left,
|
|
61
|
+
* The coordinate group of the user\\"s answering area. It generally contains four vertex coordinates, arranged in the order of top-left, top-right, bottom-right, and bottom-left, such as `[{"x": ..., "y": ...}, ...]`.
|
|
62
62
|
*/
|
|
63
63
|
answerPoints?: CreateEduHomeworkCorrectSubmitResponseBodyDataQuestionResultsAnswerResultsAnswerPoints[];
|
|
64
64
|
/**
|
|
65
65
|
* @remarks
|
|
66
|
-
* The coordinates of the grading mark point,
|
|
66
|
+
* The coordinates of the grading mark point, such as `{ "x": ..., "y": ... }`.
|
|
67
67
|
*/
|
|
68
68
|
checkPoint?: CreateEduHomeworkCorrectSubmitResponseBodyDataQuestionResultsAnswerResultsCheckPoint;
|
|
69
69
|
/**
|
|
@@ -137,7 +137,7 @@ export declare class CreateEduHomeworkCorrectSubmitResponseBodyDataQuestionResul
|
|
|
137
137
|
answerResults?: CreateEduHomeworkCorrectSubmitResponseBodyDataQuestionResultsAnswerResults[];
|
|
138
138
|
/**
|
|
139
139
|
* @remarks
|
|
140
|
-
* Specifies whether the task is completed:
|
|
140
|
+
* Specifies whether the task is completed. Valid values:
|
|
141
141
|
*
|
|
142
142
|
* - **true**: The task is completed.
|
|
143
143
|
* - **false**: The task is not completed.
|
|
@@ -164,10 +164,10 @@ export declare class CreateEduHomeworkCorrectSubmitResponseBodyDataQuestionResul
|
|
|
164
164
|
questionId?: string;
|
|
165
165
|
/**
|
|
166
166
|
* @remarks
|
|
167
|
-
* The coordinate group of the question area. It generally contains four vertex coordinates arranged in the order of top-left, top-right, bottom-right, and bottom-left.
|
|
167
|
+
* The coordinate group of the question area. It generally contains four vertex coordinates, arranged in the order of top-left, top-right, bottom-right, and bottom-left.
|
|
168
168
|
*
|
|
169
169
|
* @example
|
|
170
|
-
*
|
|
170
|
+
* Example: `[[{"x": 0, "y": 0}, ...]]`
|
|
171
171
|
*/
|
|
172
172
|
questionPoints?: CreateEduHomeworkCorrectSubmitResponseBodyDataQuestionResultsQuestionPoints[][];
|
|
173
173
|
/**
|
|
@@ -183,7 +183,7 @@ export declare class CreateEduHomeworkCorrectSubmitResponseBodyDataQuestionResul
|
|
|
183
183
|
* The question analysis and solution.
|
|
184
184
|
*
|
|
185
185
|
* @example
|
|
186
|
-
*
|
|
186
|
+
* Question analysis and solution
|
|
187
187
|
*/
|
|
188
188
|
solution?: string;
|
|
189
189
|
static names(): {
|
|
@@ -200,7 +200,7 @@ export declare class CreateEduHomeworkCorrectSubmitResponseBodyDataQuestionResul
|
|
|
200
200
|
export declare class CreateEduHomeworkCorrectSubmitResponseBodyData extends $dara.Model {
|
|
201
201
|
/**
|
|
202
202
|
* @remarks
|
|
203
|
-
* The
|
|
203
|
+
* The rotation angle of the image in the clockwise direction, in degrees.
|
|
204
204
|
*
|
|
205
205
|
* @example
|
|
206
206
|
* 0
|
|
@@ -208,7 +208,7 @@ export declare class CreateEduHomeworkCorrectSubmitResponseBodyData extends $dar
|
|
|
208
208
|
angle?: number;
|
|
209
209
|
/**
|
|
210
210
|
* @remarks
|
|
211
|
-
* The URL of the corrected image. If `dewarp` is set to `false`, the
|
|
211
|
+
* The URL of the corrected image. If `dewarp` is set to `false`, the original image is returned.
|
|
212
212
|
*
|
|
213
213
|
* @example
|
|
214
214
|
* https://example.com/dewarp.jpg
|
|
@@ -224,12 +224,12 @@ export declare class CreateEduHomeworkCorrectSubmitResponseBodyData extends $dar
|
|
|
224
224
|
* The task status.
|
|
225
225
|
*
|
|
226
226
|
* @example
|
|
227
|
-
* Examples: submitted, processing, finished,
|
|
227
|
+
* Examples: submitted, processing, finished, and failed
|
|
228
228
|
*/
|
|
229
229
|
status?: string;
|
|
230
230
|
/**
|
|
231
231
|
* @remarks
|
|
232
|
-
* The unique identifier of the task
|
|
232
|
+
* The unique identifier of the task, which must be included in subsequent queries.
|
|
233
233
|
*
|
|
234
234
|
* @example
|
|
235
235
|
* task-20261116-abc123
|
|
@@ -270,7 +270,7 @@ export declare class CreateEduHomeworkCorrectSubmitResponseBody extends $dara.Mo
|
|
|
270
270
|
message?: string;
|
|
271
271
|
/**
|
|
272
272
|
* @remarks
|
|
273
|
-
* The request ID
|
|
273
|
+
* The request ID of the caller.
|
|
274
274
|
*
|
|
275
275
|
* @example
|
|
276
276
|
* req-20261116-0001
|
|
@@ -2,17 +2,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class CreateEduProblemSolveRequestQueryImage extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
*
|
|
5
|
+
* The Base64 encoding of the image.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
|
-
*
|
|
8
|
+
* /9j/4AAQSkZJRgABAQAASABIAAD/4QCMRXhpZgAATU0AK...
|
|
9
9
|
*/
|
|
10
10
|
base64?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* This parameter is required.
|
|
13
|
+
* The image format. Valid values: jpg, jpeg, and png. The value must match the actual file format.
|
|
16
14
|
*
|
|
17
15
|
* @example
|
|
18
16
|
* jpg
|
|
@@ -20,10 +18,10 @@ export declare class CreateEduProblemSolveRequestQueryImage extends $dara.Model
|
|
|
20
18
|
format?: string;
|
|
21
19
|
/**
|
|
22
20
|
* @remarks
|
|
23
|
-
* The URL
|
|
21
|
+
* The image URL.
|
|
24
22
|
*
|
|
25
23
|
* @example
|
|
26
|
-
* https://
|
|
24
|
+
* https://xxx/xxx.jpg
|
|
27
25
|
*/
|
|
28
26
|
url?: string;
|
|
29
27
|
static names(): {
|
|
@@ -40,7 +38,7 @@ export declare class CreateEduProblemSolveRequestQueryImage extends $dara.Model
|
|
|
40
38
|
export declare class CreateEduProblemSolveRequestQuery extends $dara.Model {
|
|
41
39
|
/**
|
|
42
40
|
* @remarks
|
|
43
|
-
*
|
|
41
|
+
* The query image.
|
|
44
42
|
*/
|
|
45
43
|
image?: CreateEduProblemSolveRequestQueryImage;
|
|
46
44
|
static names(): {
|
|
@@ -57,7 +55,7 @@ export declare class CreateEduProblemSolveRequestQuery extends $dara.Model {
|
|
|
57
55
|
export declare class CreateEduProblemSolveRequest extends $dara.Model {
|
|
58
56
|
/**
|
|
59
57
|
* @remarks
|
|
60
|
-
*
|
|
58
|
+
* The query information.
|
|
61
59
|
*/
|
|
62
60
|
query?: CreateEduProblemSolveRequestQuery;
|
|
63
61
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateEduProblemSolveRequest.js","sourceRoot":"","sources":["../../src/models/CreateEduProblemSolveRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"CreateEduProblemSolveRequest.js","sourceRoot":"","sources":["../../src/models/CreateEduProblemSolveRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAyBrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,KAAK;SACX,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,QAAQ;SACd,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhDD,wFAgDC;AAED,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAMhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,sCAAsC;SAC9C,CAAC;IACJ,C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