@superlinked/sie-sdk 0.6.2 → 0.6.4
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -6
- package/dist/index.d.ts +18 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -492,8 +492,9 @@ interface GenerateResult {
|
|
|
492
492
|
*
|
|
493
493
|
* `content` may be a string OR an array of typed content parts. The gateway
|
|
494
494
|
* concatenates `text` / `input_text` parts; `image_url` / `input_image` parts
|
|
495
|
-
*
|
|
496
|
-
*
|
|
495
|
+
* carrying a base64 `data:` URI are accepted for vision-capable generation
|
|
496
|
+
* models (non-vision/encode-only models reject with `400 unsupported_field`;
|
|
497
|
+
* remote (non-`data:`) URLs reject with `400 invalid_request`). See
|
|
497
498
|
* `packages/sie_gateway/src/openapi.rs` and `proxy.rs::chat_params_from_json`
|
|
498
499
|
* for the canonical accepted subset.
|
|
499
500
|
*/
|
|
@@ -507,9 +508,10 @@ interface ChatMessage {
|
|
|
507
508
|
tool_calls?: ToolCall[];
|
|
508
509
|
}
|
|
509
510
|
/**
|
|
510
|
-
* One content part inside a multimodal `messages[*].content` array.
|
|
511
|
-
* text
|
|
512
|
-
*
|
|
511
|
+
* One content part inside a multimodal `messages[*].content` array. Text parts
|
|
512
|
+
* (`text` / `input_text`) are concatenated; image parts (`image_url` /
|
|
513
|
+
* `input_image`) carry a base64 `data:` URI and are accepted for vision-capable
|
|
514
|
+
* generation models.
|
|
513
515
|
*/
|
|
514
516
|
type ChatContentPart = {
|
|
515
517
|
type: "text";
|
|
@@ -517,6 +519,16 @@ type ChatContentPart = {
|
|
|
517
519
|
} | {
|
|
518
520
|
type: "input_text";
|
|
519
521
|
text: string;
|
|
522
|
+
} | {
|
|
523
|
+
type: "image_url";
|
|
524
|
+
image_url: {
|
|
525
|
+
url: string;
|
|
526
|
+
};
|
|
527
|
+
} | {
|
|
528
|
+
type: "input_image";
|
|
529
|
+
image_url: string | {
|
|
530
|
+
url: string;
|
|
531
|
+
};
|
|
520
532
|
};
|
|
521
533
|
/** A tool call emitted by the model. */
|
|
522
534
|
interface ToolCall {
|
|
@@ -1268,7 +1280,7 @@ declare class SIEClient {
|
|
|
1268
1280
|
private detectEndpointType;
|
|
1269
1281
|
}
|
|
1270
1282
|
|
|
1271
|
-
declare const SDK_VERSION = "0.6.
|
|
1283
|
+
declare const SDK_VERSION = "0.6.4";
|
|
1272
1284
|
|
|
1273
1285
|
/**
|
|
1274
1286
|
* Helpers for converting SIE encode results to plain JavaScript types.
|
package/dist/index.d.ts
CHANGED
|
@@ -492,8 +492,9 @@ interface GenerateResult {
|
|
|
492
492
|
*
|
|
493
493
|
* `content` may be a string OR an array of typed content parts. The gateway
|
|
494
494
|
* concatenates `text` / `input_text` parts; `image_url` / `input_image` parts
|
|
495
|
-
*
|
|
496
|
-
*
|
|
495
|
+
* carrying a base64 `data:` URI are accepted for vision-capable generation
|
|
496
|
+
* models (non-vision/encode-only models reject with `400 unsupported_field`;
|
|
497
|
+
* remote (non-`data:`) URLs reject with `400 invalid_request`). See
|
|
497
498
|
* `packages/sie_gateway/src/openapi.rs` and `proxy.rs::chat_params_from_json`
|
|
498
499
|
* for the canonical accepted subset.
|
|
499
500
|
*/
|
|
@@ -507,9 +508,10 @@ interface ChatMessage {
|
|
|
507
508
|
tool_calls?: ToolCall[];
|
|
508
509
|
}
|
|
509
510
|
/**
|
|
510
|
-
* One content part inside a multimodal `messages[*].content` array.
|
|
511
|
-
* text
|
|
512
|
-
*
|
|
511
|
+
* One content part inside a multimodal `messages[*].content` array. Text parts
|
|
512
|
+
* (`text` / `input_text`) are concatenated; image parts (`image_url` /
|
|
513
|
+
* `input_image`) carry a base64 `data:` URI and are accepted for vision-capable
|
|
514
|
+
* generation models.
|
|
513
515
|
*/
|
|
514
516
|
type ChatContentPart = {
|
|
515
517
|
type: "text";
|
|
@@ -517,6 +519,16 @@ type ChatContentPart = {
|
|
|
517
519
|
} | {
|
|
518
520
|
type: "input_text";
|
|
519
521
|
text: string;
|
|
522
|
+
} | {
|
|
523
|
+
type: "image_url";
|
|
524
|
+
image_url: {
|
|
525
|
+
url: string;
|
|
526
|
+
};
|
|
527
|
+
} | {
|
|
528
|
+
type: "input_image";
|
|
529
|
+
image_url: string | {
|
|
530
|
+
url: string;
|
|
531
|
+
};
|
|
520
532
|
};
|
|
521
533
|
/** A tool call emitted by the model. */
|
|
522
534
|
interface ToolCall {
|
|
@@ -1268,7 +1280,7 @@ declare class SIEClient {
|
|
|
1268
1280
|
private detectEndpointType;
|
|
1269
1281
|
}
|
|
1270
1282
|
|
|
1271
|
-
declare const SDK_VERSION = "0.6.
|
|
1283
|
+
declare const SDK_VERSION = "0.6.4";
|
|
1272
1284
|
|
|
1273
1285
|
/**
|
|
1274
1286
|
* Helpers for converting SIE encode results to plain JavaScript types.
|