@picsart/ai-sdk 5.27.0 → 5.28.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/index.d.ts +7 -1
- package/index.js +21 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -297,6 +297,11 @@ type ModelInputById = {
|
|
|
297
297
|
imageUrls?: string[];
|
|
298
298
|
thinking?: "off" | "low" | "medium" | "high";
|
|
299
299
|
};
|
|
300
|
+
"gemini-3.8-flash": {
|
|
301
|
+
prompt: string;
|
|
302
|
+
imageUrls?: string[];
|
|
303
|
+
thinking?: "off" | "low" | "medium" | "high";
|
|
304
|
+
};
|
|
300
305
|
"gemini-omni-1.1-flash-preview": {
|
|
301
306
|
prompt: string;
|
|
302
307
|
aspectRatio?: "16:9" | "9:16";
|
|
@@ -1614,7 +1619,7 @@ type ModelInputById = {
|
|
|
1614
1619
|
type TypedModelId = keyof ModelInputById;
|
|
1615
1620
|
type ModelInput<M extends TypedModelId> = ModelInputById[M];
|
|
1616
1621
|
/** IDs of text-generation (LLM) models — narrows generateText(). */
|
|
1617
|
-
type TextModelId = "claude-haiku-4-5" | "claude-opus-4-8" | "claude-sonnet-4-6" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gpt-5.5";
|
|
1622
|
+
type TextModelId = "claude-haiku-4-5" | "claude-opus-4-8" | "claude-sonnet-4-6" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gpt-5.5";
|
|
1618
1623
|
type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
1619
1624
|
|
|
1620
1625
|
/**
|
|
@@ -2597,6 +2602,7 @@ declare const Models: {
|
|
|
2597
2602
|
readonly Gemini35FlashLite: "gemini-3.5-flash-lite";
|
|
2598
2603
|
readonly Gemini36Flash: "gemini-3.6-flash";
|
|
2599
2604
|
readonly Gemini37Flash: "gemini-3.7-flash";
|
|
2605
|
+
readonly Gemini38Flash: "gemini-3.8-flash";
|
|
2600
2606
|
readonly GeminiOmni11FlashPreview: "gemini-omni-1.1-flash-preview";
|
|
2601
2607
|
readonly GeminiOmniFlashPreview: "gemini-omni-flash-preview";
|
|
2602
2608
|
readonly Gpt55: "gpt-5.5";
|
package/index.js
CHANGED
|
@@ -8703,6 +8703,23 @@ var { MODELS: GEMINI_LLM } = defineModels("google", [
|
|
|
8703
8703
|
...thinkingParam(["low", "high"])
|
|
8704
8704
|
}
|
|
8705
8705
|
},
|
|
8706
|
+
{
|
|
8707
|
+
id: "gemini-3.8-flash",
|
|
8708
|
+
name: "Gemini 3.8 Flash",
|
|
8709
|
+
workflow: "chat-completions",
|
|
8710
|
+
addedAt: "2026-09-03",
|
|
8711
|
+
estimatedTime: 5,
|
|
8712
|
+
mode: "text",
|
|
8713
|
+
inputType: "i2t",
|
|
8714
|
+
badge: ["fast"],
|
|
8715
|
+
description: "Latest fast Gemini model \u2014 low-latency multimodal text generation.",
|
|
8716
|
+
features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
|
|
8717
|
+
paramConfig: {
|
|
8718
|
+
...params.prompt(),
|
|
8719
|
+
...params.imageInput(8, "Images"),
|
|
8720
|
+
...thinkingParam(["low", "medium", "high"])
|
|
8721
|
+
}
|
|
8722
|
+
},
|
|
8706
8723
|
{
|
|
8707
8724
|
id: "gemini-3.7-flash",
|
|
8708
8725
|
name: "Gemini 3.7 Flash",
|
|
@@ -8712,7 +8729,7 @@ var { MODELS: GEMINI_LLM } = defineModels("google", [
|
|
|
8712
8729
|
mode: "text",
|
|
8713
8730
|
inputType: "i2t",
|
|
8714
8731
|
badge: ["fast"],
|
|
8715
|
-
description: "
|
|
8732
|
+
description: "Fast Gemini model \u2014 low-latency multimodal text generation.",
|
|
8716
8733
|
features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
|
|
8717
8734
|
paramConfig: {
|
|
8718
8735
|
...params.prompt(),
|
|
@@ -8813,6 +8830,7 @@ registerPayloads(MODELS36, {
|
|
|
8813
8830
|
"gemini-3-pro": buildGeminiPayload("gemini-3-pro-preview"),
|
|
8814
8831
|
// Flash models route through chat-completions (OpenAI-shaped), not the
|
|
8815
8832
|
// native `gemini` workflow. flash-lite has no thinking param → reasoning_effort omitted.
|
|
8833
|
+
"gemini-3.8-flash": buildOpenAiPayload("gemini-3.8-flash"),
|
|
8816
8834
|
"gemini-3.7-flash": buildOpenAiPayload("gemini-3.7-flash"),
|
|
8817
8835
|
"gemini-3.6-flash": buildOpenAiPayload("gemini-3.6-flash"),
|
|
8818
8836
|
"gemini-3.5-flash-lite": buildOpenAiPayload("gemini-3.5-flash-lite")
|
|
@@ -11159,6 +11177,7 @@ var Gemini31FlashLiteImage = "gemini-3.1-flash-lite-image";
|
|
|
11159
11177
|
var Gemini35FlashLite = "gemini-3.5-flash-lite";
|
|
11160
11178
|
var Gemini36Flash = "gemini-3.6-flash";
|
|
11161
11179
|
var Gemini37Flash = "gemini-3.7-flash";
|
|
11180
|
+
var Gemini38Flash = "gemini-3.8-flash";
|
|
11162
11181
|
var GeminiOmni11FlashPreview = "gemini-omni-1.1-flash-preview";
|
|
11163
11182
|
var GeminiOmniFlashPreview = "gemini-omni-flash-preview";
|
|
11164
11183
|
var Gpt55 = "gpt-5.5";
|
|
@@ -11374,6 +11393,7 @@ var Models = {
|
|
|
11374
11393
|
Gemini35FlashLite,
|
|
11375
11394
|
Gemini36Flash,
|
|
11376
11395
|
Gemini37Flash,
|
|
11396
|
+
Gemini38Flash,
|
|
11377
11397
|
GeminiOmni11FlashPreview,
|
|
11378
11398
|
GeminiOmniFlashPreview,
|
|
11379
11399
|
Gpt55,
|