seacloud-sdk 0.3.1 → 0.4.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/index.d.ts +301 -1
- package/dist/index.js +83 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11582,4 +11582,304 @@ interface VolcesSubjectRecognitionResource {
|
|
|
11582
11582
|
*/
|
|
11583
11583
|
declare function volcesSubjectRecognition(params: VolcesSubjectRecognitionParams): Promise<VolcesSubjectRecognitionResource[]>;
|
|
11584
11584
|
|
|
11585
|
-
export { type AlibabaAnimateAnyoneDetectParams, type AlibabaAnimateAnyoneDetectResource, type AlibabaAnimateAnyoneTemplateParams, type AlibabaAnimateAnyoneTemplateResource, type AlibabaAnimateAnyoneVideoParams, type AlibabaAnimateAnyoneVideoResource, type AlibabaQianwenImageParams, type AlibabaQianwenImageResource, type AlibabaWan22T2iFlashParams, type AlibabaWan22T2iFlashResource, type AlibabaWan22T2iPlusParams, type AlibabaWan22T2iPlusResource, type AlibabaWan25I2iPreviewParams, type AlibabaWan25I2iPreviewResource, type AlibabaWan25T2iPreviewParams, type AlibabaWan25T2iPreviewResource, type AlibabaWanx20T2iTurboParams, type AlibabaWanx20T2iTurboResource, type AlibabaWanx21I2vPlusParams, type AlibabaWanx21I2vPlusResource, type AlibabaWanx21I2vTurboParams, type AlibabaWanx21I2vTurboResource, type AlibabaWanx21T2iPlusParams, type AlibabaWanx21T2iPlusResource, type AlibabaWanx21T2iTurboParams, type AlibabaWanx21T2iTurboResource, type AlibabaWanx21T2vPlusParams, type AlibabaWanx21T2vPlusResource, type AlibabaWanx21T2vTurboParams, type AlibabaWanx21T2vTurboResource, type AlibabaWanx22I2vFlashParams, type AlibabaWanx22I2vFlashResource, type AlibabaWanx22I2vPlusParams, type AlibabaWanx22I2vPlusResource, type AlibabaWanx22T2vPlusParams, type AlibabaWanx22T2vPlusResource, type AlibabaWanx25I2vPreviewParams, type AlibabaWanx25I2vPreviewResource, type AlibabaWanx25T2vPreviewParams, type AlibabaWanx25T2vPreviewResource, type AlibabaWanx26I2vParams, type AlibabaWanx26I2vResource, type AlibabaWanx26ReferenceParams, type AlibabaWanx26ReferenceResource, type AlibabaWanx26T2vParams, type AlibabaWanx26T2vResource, type BlackforestlabsFlux11ProParams, type BlackforestlabsFlux11ProResource, type BlackforestlabsFlux1ProParams, type BlackforestlabsFlux1ProResource, type BlackforestlabsFlux2FlexEditParams, type BlackforestlabsFlux2FlexEditResource, type BlackforestlabsFlux2FlexParams, type BlackforestlabsFlux2FlexResource, type BlackforestlabsFlux2ProEditParams, type BlackforestlabsFlux2ProEditResource, type BlackforestlabsFlux2ProParams, type BlackforestlabsFlux2ProResource, type BlackforestlabsFluxKontextMaxParams, type BlackforestlabsFluxKontextMaxResource, type BlackforestlabsFluxKontextProParams, type BlackforestlabsFluxKontextProResource, type ElevenlabsTtsGeneratorParams, type ElevenlabsTtsGeneratorResource, type GoogleGemini3ProImageParams, type GoogleGemini3ProImageResource, type GoogleGeminiImageParams, type GoogleGeminiImageResource, type GoogleImagen4FastGenerateParams, type GoogleImagen4FastGenerateResource, type GoogleImagen4GenerateParams, type GoogleImagen4GenerateResource, type GoogleImagen4UltraGenerateParams, type GoogleImagen4UltraGenerateResource, type GoogleVeo20Generate001Params, type GoogleVeo20Generate001Resource, type GoogleVeo20GenerateExpParams, type GoogleVeo20GenerateExpResource, type GoogleVeo20GeneratePreviewParams, type GoogleVeo20GeneratePreviewResource, type GoogleVeo30FastGenerate001Params, type GoogleVeo30FastGenerate001Resource, type GoogleVeo30Generate001Params, type GoogleVeo30Generate001Resource, type GoogleVeo31Params, type GoogleVeo31Resource, type KlingAvatarParams, type KlingAvatarResource, type KlingDurationExtensionParams, type KlingDurationExtensionResource, type KlingEffectsMultiV15Params, type KlingEffectsMultiV15Resource, type KlingEffectsMultiV16Params, type KlingEffectsMultiV16Resource, type KlingEffectsMultiV1Params, type KlingEffectsMultiV1Resource, type KlingEffectsSingleParams, type KlingEffectsSingleResource, type KlingLipsyncParams, type KlingLipsyncResource, type KlingOmniImageParams, type KlingOmniImageResource, type KlingOmniVideoParams, type KlingOmniVideoResource, type KlingV15I2vParams, type KlingV15I2vResource, type KlingV15Params, type KlingV15Resource, type KlingV16I2vParams, type KlingV16I2vResource, type KlingV16Params, type KlingV16Resource, type KlingV1I2vParams, type KlingV1I2vResource, type KlingV1Params, type KlingV1Resource, type KlingV21I2vParams, type KlingV21I2vResource, type KlingV21MasterI2vParams, type KlingV21MasterI2vResource, type KlingV21MasterParams, type KlingV21MasterResource, type KlingV25TurboI2vParams, type KlingV25TurboI2vResource, type KlingV25TurboParams, type KlingV25TurboResource, type KlingV26I2vParams, type KlingV26I2vResource, type KlingV26Params, type KlingV26Resource, type KlingV2MasterI2vParams, type KlingV2MasterI2vResource, type KlingV2MasterParams, type KlingV2MasterResource, type MicrosoftGptImage15Params, type MicrosoftGptImage15Resource, type MicrosoftGptImage1Params, type MicrosoftGptImage1Resource, type MicrosoftSora2Params, type MicrosoftSora2Resource, type MinimaxHailuo02I2vParams, type MinimaxHailuo02I2vResource, type MinimaxHailuo02Params, type MinimaxHailuo02Resource, type MinimaxHailuo23FastI2vParams, type MinimaxHailuo23FastI2vResource, type MinimaxHailuo23I2vParams, type MinimaxHailuo23I2vResource, type MinimaxI2v01DirectorParams, type MinimaxI2v01DirectorResource, type MinimaxI2v01LiveParams, type MinimaxI2v01LiveResource, type MinimaxI2v01Params, type MinimaxI2v01Resource, type MinimaxT2aParams, type MinimaxT2aResource, type MinimaxT2v01DirectorParams, type MinimaxT2v01DirectorResource, type MinimaxT2v01Params, type MinimaxT2v01Resource, type PixverseV35I2vParams, type PixverseV35I2vResource, type PixverseV35T2vParams, type PixverseV35T2vResource, type PixverseV35TransitionParams, type PixverseV35TransitionResource, type PixverseV45I2vParams, type PixverseV45I2vResource, type PixverseV45T2vParams, type PixverseV45T2vResource, type PixverseV45TransitionParams, type PixverseV45TransitionResource, type PixverseV4I2vParams, type PixverseV4I2vResource, type PixverseV4T2vParams, type PixverseV4T2vResource, type PixverseV4TransitionParams, type PixverseV4TransitionResource, type PixverseV55I2vParams, type PixverseV55I2vResource, type PixverseV55T2vParams, type PixverseV55T2vResource, type PixverseV55TransitionParams, type PixverseV55TransitionResource, type PixverseV5I2vParams, type PixverseV5I2vResource, type PixverseV5T2vParams, type PixverseV5T2vResource, type PixverseV5TransitionParams, type PixverseV5TransitionResource, type PollingOptions, type RunwayGen3aTurboI2vParams, type RunwayGen3aTurboI2vResource, SeacloudClient, type SeacloudConfig, SeacloudError, type TaskError, type TaskResult, type TaskStatus, type TencentHunyuan3dParams, type TencentHunyuan3dProParams, type TencentHunyuan3dProResource, type TencentHunyuan3dRapidParams, type TencentHunyuan3dRapidResource, type TencentHunyuan3dResource, type TencentImageCreation3Params, type TencentImageCreation3Resource, type TencentMpsSuperResolutionParams, type TencentMpsSuperResolutionResource, type Vidu15I2vParams, type Vidu15I2vResource, type Vidu15Params, type Vidu15Resource, type Vidu20I2vParams, type Vidu20I2vResource, type ViduQ1I2vParams, type ViduQ1I2vResource, type ViduQ1Params, type ViduQ1Resource, type ViduQ2Params, type ViduQ2Resource, type ViduTemplateParams, type ViduTemplateResource, type ViduTemplateV2Params, type ViduTemplateV2Resource, type VolcesJimeng30Params, type VolcesJimeng30Resource, type VolcesJimeng31Params, type VolcesJimeng31Resource, type VolcesJimengDreamActorM1Params, type VolcesJimengDreamActorM1Resource, type VolcesJimengI2i30Params, type VolcesJimengI2i30Resource, type VolcesRealmanAvatarImitatorV2vParams, type VolcesRealmanAvatarImitatorV2vResource, type VolcesRealmanAvatarPictureOmniV15Params, type VolcesRealmanAvatarPictureOmniV15Resource, type VolcesRealmanAvatarPictureOmniV2Params, type VolcesRealmanAvatarPictureOmniV2Resource, type VolcesSeed3dParams, type VolcesSeed3dResource, type VolcesSeedance30I2vParams, type VolcesSeedance30I2vResource, type VolcesSeedance30Params, type VolcesSeedance30ProParams, type VolcesSeedance30ProResource, type VolcesSeedance30Resource, type VolcesSeedanceProFastParams, type VolcesSeedanceProFastResource, type VolcesSeededit20Params, type VolcesSeededit20Resource, type VolcesSeededit30I2iParams, type VolcesSeededit30I2iResource, type VolcesSeededit30Params, type VolcesSeededit30Resource, type VolcesSeededit3dStyleParams, type VolcesSeededit3dStyleResource, type VolcesSeededitMultiIpParams, type VolcesSeededitMultiIpResource, type VolcesSeededitMultiStyleParams, type VolcesSeededitMultiStyleResource, type VolcesSeededitPortraitParams, type VolcesSeededitPortraitResource, type VolcesSeededitSingleIpParams, type VolcesSeededitSingleIpResource, type VolcesSeedream30Params, type VolcesSeedream30Resource, type VolcesSeedream40Params, type VolcesSeedream40Resource, type VolcesSeedream45I2iParams, type VolcesSeedream45I2iResource, type VolcesSeedream45MultiBlendParams, type VolcesSeedream45MultiBlendResource, type VolcesSeedream45Params, type VolcesSeedream45Resource, type VolcesSubjectDetectionParams, type VolcesSubjectDetectionResource, type VolcesSubjectRecognitionParams, type VolcesSubjectRecognitionResource, alibabaAnimateAnyoneDetect, alibabaAnimateAnyoneTemplate, alibabaAnimateAnyoneVideo, alibabaQianwenImage, alibabaWan22T2iFlash, alibabaWan22T2iPlus, alibabaWan25I2iPreview, alibabaWan25T2iPreview, alibabaWanx20T2iTurbo, alibabaWanx21I2vPlus, alibabaWanx21I2vTurbo, alibabaWanx21T2iPlus, alibabaWanx21T2iTurbo, alibabaWanx21T2vPlus, alibabaWanx21T2vTurbo, alibabaWanx22I2vFlash, alibabaWanx22I2vPlus, alibabaWanx22T2vPlus, alibabaWanx25I2vPreview, alibabaWanx25T2vPreview, alibabaWanx26I2v, alibabaWanx26Reference, alibabaWanx26T2v, blackforestlabsFlux11Pro, blackforestlabsFlux1Pro, blackforestlabsFlux2Flex, blackforestlabsFlux2FlexEdit, blackforestlabsFlux2Pro, blackforestlabsFlux2ProEdit, blackforestlabsFluxKontextMax, blackforestlabsFluxKontextPro, createAndWaitTask, createConfig, elevenlabsTtsGenerator, getClient, getDefaultPollingOptions, googleGemini3ProImage, googleGeminiImage, googleImagen4FastGenerate, googleImagen4Generate, googleImagen4UltraGenerate, googleVeo20Generate001, googleVeo20GenerateExp, googleVeo20GeneratePreview, googleVeo30FastGenerate001, googleVeo30Generate001, googleVeo31, initSeacloud, klingAvatar, klingDurationExtension, klingEffectsMultiV1, klingEffectsMultiV15, klingEffectsMultiV16, klingEffectsSingle, klingLipsync, klingOmniImage, klingOmniVideo, klingV1, klingV15, klingV15I2v, klingV16, klingV16I2v, klingV1I2v, klingV21I2v, klingV21Master, klingV21MasterI2v, klingV25Turbo, klingV25TurboI2v, klingV26, klingV26I2v, klingV2Master, klingV2MasterI2v, microsoftGptImage1, microsoftGptImage15, microsoftSora2, minimaxHailuo02, minimaxHailuo02I2v, minimaxHailuo23FastI2v, minimaxHailuo23I2v, minimaxI2v01, minimaxI2v01Director, minimaxI2v01Live, minimaxT2a, minimaxT2v01, minimaxT2v01Director, pixverseV35I2v, pixverseV35T2v, pixverseV35Transition, pixverseV45I2v, pixverseV45T2v, pixverseV45Transition, pixverseV4I2v, pixverseV4T2v, pixverseV4Transition, pixverseV55I2v, pixverseV55T2v, pixverseV55Transition, pixverseV5I2v, pixverseV5T2v, pixverseV5Transition, pollTaskUntilComplete, resetConfig, runwayGen3aTurboI2v, setDefaultPollingOptions, tencentHunyuan3d, tencentHunyuan3dPro, tencentHunyuan3dRapid, tencentImageCreation3, tencentMpsSuperResolution, validateConfig, vidu15, vidu15I2v, vidu20I2v, viduQ1, viduQ1I2v, viduQ2, viduTemplate, viduTemplateV2, volcesJimeng30, volcesJimeng31, volcesJimengDreamActorM1, volcesJimengI2i30, volcesRealmanAvatarImitatorV2v, volcesRealmanAvatarPictureOmniV15, volcesRealmanAvatarPictureOmniV2, volcesSeed3d, volcesSeedance30, volcesSeedance30I2v, volcesSeedance30Pro, volcesSeedanceProFast, volcesSeededit20, volcesSeededit30, volcesSeededit30I2i, volcesSeededit3dStyle, volcesSeededitMultiIp, volcesSeededitMultiStyle, volcesSeededitPortrait, volcesSeededitSingleIp, volcesSeedream30, volcesSeedream40, volcesSeedream45, volcesSeedream45I2i, volcesSeedream45MultiBlend, volcesSubjectDetection, volcesSubjectRecognition };
|
|
11585
|
+
/**
|
|
11586
|
+
* Chat message role
|
|
11587
|
+
*/
|
|
11588
|
+
type ChatMessageRole = 'system' | 'user' | 'assistant';
|
|
11589
|
+
/**
|
|
11590
|
+
* Chat message interface
|
|
11591
|
+
*/
|
|
11592
|
+
interface ChatMessage {
|
|
11593
|
+
/**
|
|
11594
|
+
* Message role
|
|
11595
|
+
*/
|
|
11596
|
+
role: ChatMessageRole;
|
|
11597
|
+
/**
|
|
11598
|
+
* Message content
|
|
11599
|
+
*/
|
|
11600
|
+
content: string;
|
|
11601
|
+
}
|
|
11602
|
+
/**
|
|
11603
|
+
* LLM chat completions request parameters
|
|
11604
|
+
*/
|
|
11605
|
+
interface LlmChatCompletionsParams {
|
|
11606
|
+
/**
|
|
11607
|
+
* Model name to use for chat completion
|
|
11608
|
+
* Supports 100+ models including:
|
|
11609
|
+
* - Claude: seaart-mix-sonnet-4-5, shaseng-claude-4.5, seacloud-claude-haiku-4.5, seacloud-claude-sonnet-4, seacloud-claude-opus-4.5
|
|
11610
|
+
* - Kimi: kimi-k2, kimi-k2-thinking, kimi-k2-250905
|
|
11611
|
+
* - Grok: grok-4, grok-code-fast-1
|
|
11612
|
+
* - DeepSeek: deepseek-v3.1, deepseek-v3-0324, deepseek-r1, deepseek-r1-0528
|
|
11613
|
+
* - Gemini: gemini-2.5-pro, gemini-2.5-flash, gemini-2.0-flash, gemini-3-pro-preview, gemini-3-flash-preview
|
|
11614
|
+
* - Qwen: qwen-plus, qwen-plus-character, qwen3-coder-plus
|
|
11615
|
+
* - GLM: glm-4.5-air, glm-4.5, glm-4.6, glm-4-plus
|
|
11616
|
+
* - GPT: gpt-4o, gpt-4o-mini, gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, gpt-5, gpt-5.1, gpt-5.2
|
|
11617
|
+
* - Hunyuan: hunyuan-turbos-latest, hunyuan-large-role-20250822, hunyuan-large-role-plus-20250718
|
|
11618
|
+
* - Mistral: mistral-small-3.2-24b-instruct, mistral-small-3.1-24b-instruct, mistral-nemo
|
|
11619
|
+
* - Hermes: hermes-4-70b, hermes-4-405b, hermes-3-llama-3.1-405b
|
|
11620
|
+
* - Doubao: doubao-romantic, doubao-seed-1-6, doubao-seed-code-preview-251028
|
|
11621
|
+
* - Ernie: ernie-5.0-thinking-latest, ernie-5.0-thinking-preview
|
|
11622
|
+
* - WizardLM: wizardlm-2-8x22b
|
|
11623
|
+
* - O1/O3: o1-pre, o3-pre
|
|
11624
|
+
* - LongCat: LongCat-Flash-Chat, LongCat-Flash-Thinking
|
|
11625
|
+
* - And many more...
|
|
11626
|
+
*
|
|
11627
|
+
* @example "seaart-mix-sonnet-4-5"
|
|
11628
|
+
* @example "kimi-k2"
|
|
11629
|
+
* @example "deepseek-v3.1"
|
|
11630
|
+
*/
|
|
11631
|
+
model: string;
|
|
11632
|
+
/**
|
|
11633
|
+
* Array of messages comprising the conversation so far
|
|
11634
|
+
*/
|
|
11635
|
+
messages: ChatMessage[];
|
|
11636
|
+
/**
|
|
11637
|
+
* Maximum number of tokens to generate in the completion
|
|
11638
|
+
* @default undefined (model default)
|
|
11639
|
+
*/
|
|
11640
|
+
max_tokens?: number;
|
|
11641
|
+
/**
|
|
11642
|
+
* Sampling temperature (0-2)
|
|
11643
|
+
* Higher values make output more random, lower values more deterministic
|
|
11644
|
+
* @default undefined (model default, usually 1.0)
|
|
11645
|
+
*/
|
|
11646
|
+
temperature?: number;
|
|
11647
|
+
/**
|
|
11648
|
+
* Nucleus sampling parameter (0-1)
|
|
11649
|
+
* Alternative to temperature sampling
|
|
11650
|
+
* @default undefined (model default, usually 1.0)
|
|
11651
|
+
*/
|
|
11652
|
+
top_p?: number;
|
|
11653
|
+
/**
|
|
11654
|
+
* Whether to stream the response
|
|
11655
|
+
* If true, returns an async iterator of chunks
|
|
11656
|
+
* If false, waits for complete response
|
|
11657
|
+
* @default false
|
|
11658
|
+
*/
|
|
11659
|
+
stream?: boolean;
|
|
11660
|
+
/**
|
|
11661
|
+
* Number of completions to generate
|
|
11662
|
+
* @default 1
|
|
11663
|
+
*/
|
|
11664
|
+
n?: number;
|
|
11665
|
+
/**
|
|
11666
|
+
* Sequences where the API will stop generating further tokens
|
|
11667
|
+
*/
|
|
11668
|
+
stop?: string | string[];
|
|
11669
|
+
/**
|
|
11670
|
+
* Penalty for new tokens based on whether they appear in the text so far (-2.0 to 2.0)
|
|
11671
|
+
* @default 0
|
|
11672
|
+
*/
|
|
11673
|
+
presence_penalty?: number;
|
|
11674
|
+
/**
|
|
11675
|
+
* Penalty for new tokens based on their existing frequency in the text so far (-2.0 to 2.0)
|
|
11676
|
+
* @default 0
|
|
11677
|
+
*/
|
|
11678
|
+
frequency_penalty?: number;
|
|
11679
|
+
/**
|
|
11680
|
+
* A unique identifier representing your end-user
|
|
11681
|
+
*/
|
|
11682
|
+
user?: string;
|
|
11683
|
+
}
|
|
11684
|
+
/**
|
|
11685
|
+
* Usage statistics for the completion
|
|
11686
|
+
*/
|
|
11687
|
+
interface ChatCompletionUsage {
|
|
11688
|
+
/**
|
|
11689
|
+
* Number of tokens in the prompt
|
|
11690
|
+
*/
|
|
11691
|
+
prompt_tokens: number;
|
|
11692
|
+
/**
|
|
11693
|
+
* Number of tokens in the generated completion
|
|
11694
|
+
*/
|
|
11695
|
+
completion_tokens: number;
|
|
11696
|
+
/**
|
|
11697
|
+
* Total number of tokens used
|
|
11698
|
+
*/
|
|
11699
|
+
total_tokens: number;
|
|
11700
|
+
/**
|
|
11701
|
+
* Cost in USD (if available)
|
|
11702
|
+
*/
|
|
11703
|
+
cost?: number;
|
|
11704
|
+
/**
|
|
11705
|
+
* Additional usage details
|
|
11706
|
+
*/
|
|
11707
|
+
[key: string]: any;
|
|
11708
|
+
}
|
|
11709
|
+
/**
|
|
11710
|
+
* A single chat completion choice
|
|
11711
|
+
*/
|
|
11712
|
+
interface ChatCompletionChoice {
|
|
11713
|
+
/**
|
|
11714
|
+
* The index of this choice
|
|
11715
|
+
*/
|
|
11716
|
+
index: number;
|
|
11717
|
+
/**
|
|
11718
|
+
* The message generated by the model
|
|
11719
|
+
*/
|
|
11720
|
+
message: ChatMessage;
|
|
11721
|
+
/**
|
|
11722
|
+
* The reason the model stopped generating tokens
|
|
11723
|
+
* @values stop | length | content_filter | function_call
|
|
11724
|
+
*/
|
|
11725
|
+
finish_reason: string | null;
|
|
11726
|
+
/**
|
|
11727
|
+
* Additional choice-specific fields
|
|
11728
|
+
*/
|
|
11729
|
+
[key: string]: any;
|
|
11730
|
+
}
|
|
11731
|
+
/**
|
|
11732
|
+
* Chat completion response (non-streaming)
|
|
11733
|
+
*/
|
|
11734
|
+
interface ChatCompletionResponse {
|
|
11735
|
+
/**
|
|
11736
|
+
* Unique identifier for the completion
|
|
11737
|
+
*/
|
|
11738
|
+
id: string;
|
|
11739
|
+
/**
|
|
11740
|
+
* The object type, always "chat.completion"
|
|
11741
|
+
*/
|
|
11742
|
+
object: string;
|
|
11743
|
+
/**
|
|
11744
|
+
* Unix timestamp of when the completion was created
|
|
11745
|
+
*/
|
|
11746
|
+
created: number;
|
|
11747
|
+
/**
|
|
11748
|
+
* The model used for completion
|
|
11749
|
+
*/
|
|
11750
|
+
model: string;
|
|
11751
|
+
/**
|
|
11752
|
+
* List of completion choices
|
|
11753
|
+
*/
|
|
11754
|
+
choices: ChatCompletionChoice[];
|
|
11755
|
+
/**
|
|
11756
|
+
* Usage statistics for the completion
|
|
11757
|
+
*/
|
|
11758
|
+
usage?: ChatCompletionUsage;
|
|
11759
|
+
/**
|
|
11760
|
+
* Additional response fields
|
|
11761
|
+
*/
|
|
11762
|
+
[key: string]: any;
|
|
11763
|
+
}
|
|
11764
|
+
/**
|
|
11765
|
+
* Delta message for streaming chunks
|
|
11766
|
+
*/
|
|
11767
|
+
interface ChatCompletionChunkDelta {
|
|
11768
|
+
/**
|
|
11769
|
+
* The role of the message (only in first chunk)
|
|
11770
|
+
*/
|
|
11771
|
+
role?: ChatMessageRole;
|
|
11772
|
+
/**
|
|
11773
|
+
* The content delta for this chunk
|
|
11774
|
+
*/
|
|
11775
|
+
content?: string;
|
|
11776
|
+
}
|
|
11777
|
+
/**
|
|
11778
|
+
* A single streaming chunk choice
|
|
11779
|
+
*/
|
|
11780
|
+
interface ChatCompletionChunkChoice {
|
|
11781
|
+
/**
|
|
11782
|
+
* The index of this choice
|
|
11783
|
+
*/
|
|
11784
|
+
index: number;
|
|
11785
|
+
/**
|
|
11786
|
+
* The delta message for this chunk
|
|
11787
|
+
*/
|
|
11788
|
+
delta: ChatCompletionChunkDelta;
|
|
11789
|
+
/**
|
|
11790
|
+
* The reason the model stopped generating tokens (only in last chunk)
|
|
11791
|
+
*/
|
|
11792
|
+
finish_reason: string | null;
|
|
11793
|
+
/**
|
|
11794
|
+
* Additional choice-specific fields
|
|
11795
|
+
*/
|
|
11796
|
+
[key: string]: any;
|
|
11797
|
+
}
|
|
11798
|
+
/**
|
|
11799
|
+
* Chat completion streaming chunk
|
|
11800
|
+
*/
|
|
11801
|
+
interface ChatCompletionChunk {
|
|
11802
|
+
/**
|
|
11803
|
+
* Unique identifier for the completion
|
|
11804
|
+
*/
|
|
11805
|
+
id: string;
|
|
11806
|
+
/**
|
|
11807
|
+
* The object type, always "chat.completion.chunk"
|
|
11808
|
+
*/
|
|
11809
|
+
object: string;
|
|
11810
|
+
/**
|
|
11811
|
+
* Unix timestamp of when the chunk was created
|
|
11812
|
+
*/
|
|
11813
|
+
created: number;
|
|
11814
|
+
/**
|
|
11815
|
+
* The model used for completion
|
|
11816
|
+
*/
|
|
11817
|
+
model: string;
|
|
11818
|
+
/**
|
|
11819
|
+
* List of chunk choices
|
|
11820
|
+
*/
|
|
11821
|
+
choices: ChatCompletionChunkChoice[];
|
|
11822
|
+
/**
|
|
11823
|
+
* Additional chunk fields
|
|
11824
|
+
*/
|
|
11825
|
+
[key: string]: any;
|
|
11826
|
+
}
|
|
11827
|
+
/**
|
|
11828
|
+
* Call LLM chat completions API (non-streaming)
|
|
11829
|
+
*
|
|
11830
|
+
* @example
|
|
11831
|
+
* ```typescript
|
|
11832
|
+
* import { initSeacloud, llmChatCompletions } from 'seacloud-sdk';
|
|
11833
|
+
*
|
|
11834
|
+
* initSeacloud({ apiKey: 'your-api-key' });
|
|
11835
|
+
*
|
|
11836
|
+
* const response = await llmChatCompletions({
|
|
11837
|
+
* model: 'seaart-mix-sonnet-4-5',
|
|
11838
|
+
* messages: [
|
|
11839
|
+
* { role: 'user', content: 'Hello!' }
|
|
11840
|
+
* ],
|
|
11841
|
+
* max_tokens: 100
|
|
11842
|
+
* });
|
|
11843
|
+
*
|
|
11844
|
+
* console.log(response.choices[0].message.content);
|
|
11845
|
+
* ```
|
|
11846
|
+
*
|
|
11847
|
+
* @param params Request parameters
|
|
11848
|
+
* @returns Chat completion response
|
|
11849
|
+
*/
|
|
11850
|
+
declare function llmChatCompletions(params: LlmChatCompletionsParams & {
|
|
11851
|
+
stream?: false;
|
|
11852
|
+
}): Promise<ChatCompletionResponse>;
|
|
11853
|
+
/**
|
|
11854
|
+
* Call LLM chat completions API (streaming)
|
|
11855
|
+
*
|
|
11856
|
+
* @example
|
|
11857
|
+
* ```typescript
|
|
11858
|
+
* import { initSeacloud, llmChatCompletions } from 'seacloud-sdk';
|
|
11859
|
+
*
|
|
11860
|
+
* initSeacloud({ apiKey: 'your-api-key' });
|
|
11861
|
+
*
|
|
11862
|
+
* const stream = await llmChatCompletions({
|
|
11863
|
+
* model: 'seaart-mix-sonnet-4-5',
|
|
11864
|
+
* messages: [
|
|
11865
|
+
* { role: 'user', content: 'Tell me a story' }
|
|
11866
|
+
* ],
|
|
11867
|
+
* stream: true
|
|
11868
|
+
* });
|
|
11869
|
+
*
|
|
11870
|
+
* for await (const chunk of stream) {
|
|
11871
|
+
* const content = chunk.choices[0]?.delta?.content;
|
|
11872
|
+
* if (content) {
|
|
11873
|
+
* process.stdout.write(content);
|
|
11874
|
+
* }
|
|
11875
|
+
* }
|
|
11876
|
+
* ```
|
|
11877
|
+
*
|
|
11878
|
+
* @param params Request parameters with stream: true
|
|
11879
|
+
* @returns Async iterator of chat completion chunks
|
|
11880
|
+
*/
|
|
11881
|
+
declare function llmChatCompletions(params: LlmChatCompletionsParams & {
|
|
11882
|
+
stream: true;
|
|
11883
|
+
}): Promise<AsyncIterable<ChatCompletionChunk>>;
|
|
11884
|
+
|
|
11885
|
+
export { type AlibabaAnimateAnyoneDetectParams, type AlibabaAnimateAnyoneDetectResource, type AlibabaAnimateAnyoneTemplateParams, type AlibabaAnimateAnyoneTemplateResource, type AlibabaAnimateAnyoneVideoParams, type AlibabaAnimateAnyoneVideoResource, type AlibabaQianwenImageParams, type AlibabaQianwenImageResource, type AlibabaWan22T2iFlashParams, type AlibabaWan22T2iFlashResource, type AlibabaWan22T2iPlusParams, type AlibabaWan22T2iPlusResource, type AlibabaWan25I2iPreviewParams, type AlibabaWan25I2iPreviewResource, type AlibabaWan25T2iPreviewParams, type AlibabaWan25T2iPreviewResource, type AlibabaWanx20T2iTurboParams, type AlibabaWanx20T2iTurboResource, type AlibabaWanx21I2vPlusParams, type AlibabaWanx21I2vPlusResource, type AlibabaWanx21I2vTurboParams, type AlibabaWanx21I2vTurboResource, type AlibabaWanx21T2iPlusParams, type AlibabaWanx21T2iPlusResource, type AlibabaWanx21T2iTurboParams, type AlibabaWanx21T2iTurboResource, type AlibabaWanx21T2vPlusParams, type AlibabaWanx21T2vPlusResource, type AlibabaWanx21T2vTurboParams, type AlibabaWanx21T2vTurboResource, type AlibabaWanx22I2vFlashParams, type AlibabaWanx22I2vFlashResource, type AlibabaWanx22I2vPlusParams, type AlibabaWanx22I2vPlusResource, type AlibabaWanx22T2vPlusParams, type AlibabaWanx22T2vPlusResource, type AlibabaWanx25I2vPreviewParams, type AlibabaWanx25I2vPreviewResource, type AlibabaWanx25T2vPreviewParams, type AlibabaWanx25T2vPreviewResource, type AlibabaWanx26I2vParams, type AlibabaWanx26I2vResource, type AlibabaWanx26ReferenceParams, type AlibabaWanx26ReferenceResource, type AlibabaWanx26T2vParams, type AlibabaWanx26T2vResource, type BlackforestlabsFlux11ProParams, type BlackforestlabsFlux11ProResource, type BlackforestlabsFlux1ProParams, type BlackforestlabsFlux1ProResource, type BlackforestlabsFlux2FlexEditParams, type BlackforestlabsFlux2FlexEditResource, type BlackforestlabsFlux2FlexParams, type BlackforestlabsFlux2FlexResource, type BlackforestlabsFlux2ProEditParams, type BlackforestlabsFlux2ProEditResource, type BlackforestlabsFlux2ProParams, type BlackforestlabsFlux2ProResource, type BlackforestlabsFluxKontextMaxParams, type BlackforestlabsFluxKontextMaxResource, type BlackforestlabsFluxKontextProParams, type BlackforestlabsFluxKontextProResource, type ChatCompletionChoice, type ChatCompletionChunk, type ChatCompletionChunkChoice, type ChatCompletionChunkDelta, type ChatCompletionResponse, type ChatCompletionUsage, type ChatMessage, type ChatMessageRole, type ElevenlabsTtsGeneratorParams, type ElevenlabsTtsGeneratorResource, type GoogleGemini3ProImageParams, type GoogleGemini3ProImageResource, type GoogleGeminiImageParams, type GoogleGeminiImageResource, type GoogleImagen4FastGenerateParams, type GoogleImagen4FastGenerateResource, type GoogleImagen4GenerateParams, type GoogleImagen4GenerateResource, type GoogleImagen4UltraGenerateParams, type GoogleImagen4UltraGenerateResource, type GoogleVeo20Generate001Params, type GoogleVeo20Generate001Resource, type GoogleVeo20GenerateExpParams, type GoogleVeo20GenerateExpResource, type GoogleVeo20GeneratePreviewParams, type GoogleVeo20GeneratePreviewResource, type GoogleVeo30FastGenerate001Params, type GoogleVeo30FastGenerate001Resource, type GoogleVeo30Generate001Params, type GoogleVeo30Generate001Resource, type GoogleVeo31Params, type GoogleVeo31Resource, type KlingAvatarParams, type KlingAvatarResource, type KlingDurationExtensionParams, type KlingDurationExtensionResource, type KlingEffectsMultiV15Params, type KlingEffectsMultiV15Resource, type KlingEffectsMultiV16Params, type KlingEffectsMultiV16Resource, type KlingEffectsMultiV1Params, type KlingEffectsMultiV1Resource, type KlingEffectsSingleParams, type KlingEffectsSingleResource, type KlingLipsyncParams, type KlingLipsyncResource, type KlingOmniImageParams, type KlingOmniImageResource, type KlingOmniVideoParams, type KlingOmniVideoResource, type KlingV15I2vParams, type KlingV15I2vResource, type KlingV15Params, type KlingV15Resource, type KlingV16I2vParams, type KlingV16I2vResource, type KlingV16Params, type KlingV16Resource, type KlingV1I2vParams, type KlingV1I2vResource, type KlingV1Params, type KlingV1Resource, type KlingV21I2vParams, type KlingV21I2vResource, type KlingV21MasterI2vParams, type KlingV21MasterI2vResource, type KlingV21MasterParams, type KlingV21MasterResource, type KlingV25TurboI2vParams, type KlingV25TurboI2vResource, type KlingV25TurboParams, type KlingV25TurboResource, type KlingV26I2vParams, type KlingV26I2vResource, type KlingV26Params, type KlingV26Resource, type KlingV2MasterI2vParams, type KlingV2MasterI2vResource, type KlingV2MasterParams, type KlingV2MasterResource, type LlmChatCompletionsParams, type MicrosoftGptImage15Params, type MicrosoftGptImage15Resource, type MicrosoftGptImage1Params, type MicrosoftGptImage1Resource, type MicrosoftSora2Params, type MicrosoftSora2Resource, type MinimaxHailuo02I2vParams, type MinimaxHailuo02I2vResource, type MinimaxHailuo02Params, type MinimaxHailuo02Resource, type MinimaxHailuo23FastI2vParams, type MinimaxHailuo23FastI2vResource, type MinimaxHailuo23I2vParams, type MinimaxHailuo23I2vResource, type MinimaxI2v01DirectorParams, type MinimaxI2v01DirectorResource, type MinimaxI2v01LiveParams, type MinimaxI2v01LiveResource, type MinimaxI2v01Params, type MinimaxI2v01Resource, type MinimaxT2aParams, type MinimaxT2aResource, type MinimaxT2v01DirectorParams, type MinimaxT2v01DirectorResource, type MinimaxT2v01Params, type MinimaxT2v01Resource, type PixverseV35I2vParams, type PixverseV35I2vResource, type PixverseV35T2vParams, type PixverseV35T2vResource, type PixverseV35TransitionParams, type PixverseV35TransitionResource, type PixverseV45I2vParams, type PixverseV45I2vResource, type PixverseV45T2vParams, type PixverseV45T2vResource, type PixverseV45TransitionParams, type PixverseV45TransitionResource, type PixverseV4I2vParams, type PixverseV4I2vResource, type PixverseV4T2vParams, type PixverseV4T2vResource, type PixverseV4TransitionParams, type PixverseV4TransitionResource, type PixverseV55I2vParams, type PixverseV55I2vResource, type PixverseV55T2vParams, type PixverseV55T2vResource, type PixverseV55TransitionParams, type PixverseV55TransitionResource, type PixverseV5I2vParams, type PixverseV5I2vResource, type PixverseV5T2vParams, type PixverseV5T2vResource, type PixverseV5TransitionParams, type PixverseV5TransitionResource, type PollingOptions, type RunwayGen3aTurboI2vParams, type RunwayGen3aTurboI2vResource, SeacloudClient, type SeacloudConfig, SeacloudError, type TaskError, type TaskResult, type TaskStatus, type TencentHunyuan3dParams, type TencentHunyuan3dProParams, type TencentHunyuan3dProResource, type TencentHunyuan3dRapidParams, type TencentHunyuan3dRapidResource, type TencentHunyuan3dResource, type TencentImageCreation3Params, type TencentImageCreation3Resource, type TencentMpsSuperResolutionParams, type TencentMpsSuperResolutionResource, type Vidu15I2vParams, type Vidu15I2vResource, type Vidu15Params, type Vidu15Resource, type Vidu20I2vParams, type Vidu20I2vResource, type ViduQ1I2vParams, type ViduQ1I2vResource, type ViduQ1Params, type ViduQ1Resource, type ViduQ2Params, type ViduQ2Resource, type ViduTemplateParams, type ViduTemplateResource, type ViduTemplateV2Params, type ViduTemplateV2Resource, type VolcesJimeng30Params, type VolcesJimeng30Resource, type VolcesJimeng31Params, type VolcesJimeng31Resource, type VolcesJimengDreamActorM1Params, type VolcesJimengDreamActorM1Resource, type VolcesJimengI2i30Params, type VolcesJimengI2i30Resource, type VolcesRealmanAvatarImitatorV2vParams, type VolcesRealmanAvatarImitatorV2vResource, type VolcesRealmanAvatarPictureOmniV15Params, type VolcesRealmanAvatarPictureOmniV15Resource, type VolcesRealmanAvatarPictureOmniV2Params, type VolcesRealmanAvatarPictureOmniV2Resource, type VolcesSeed3dParams, type VolcesSeed3dResource, type VolcesSeedance30I2vParams, type VolcesSeedance30I2vResource, type VolcesSeedance30Params, type VolcesSeedance30ProParams, type VolcesSeedance30ProResource, type VolcesSeedance30Resource, type VolcesSeedanceProFastParams, type VolcesSeedanceProFastResource, type VolcesSeededit20Params, type VolcesSeededit20Resource, type VolcesSeededit30I2iParams, type VolcesSeededit30I2iResource, type VolcesSeededit30Params, type VolcesSeededit30Resource, type VolcesSeededit3dStyleParams, type VolcesSeededit3dStyleResource, type VolcesSeededitMultiIpParams, type VolcesSeededitMultiIpResource, type VolcesSeededitMultiStyleParams, type VolcesSeededitMultiStyleResource, type VolcesSeededitPortraitParams, type VolcesSeededitPortraitResource, type VolcesSeededitSingleIpParams, type VolcesSeededitSingleIpResource, type VolcesSeedream30Params, type VolcesSeedream30Resource, type VolcesSeedream40Params, type VolcesSeedream40Resource, type VolcesSeedream45I2iParams, type VolcesSeedream45I2iResource, type VolcesSeedream45MultiBlendParams, type VolcesSeedream45MultiBlendResource, type VolcesSeedream45Params, type VolcesSeedream45Resource, type VolcesSubjectDetectionParams, type VolcesSubjectDetectionResource, type VolcesSubjectRecognitionParams, type VolcesSubjectRecognitionResource, alibabaAnimateAnyoneDetect, alibabaAnimateAnyoneTemplate, alibabaAnimateAnyoneVideo, alibabaQianwenImage, alibabaWan22T2iFlash, alibabaWan22T2iPlus, alibabaWan25I2iPreview, alibabaWan25T2iPreview, alibabaWanx20T2iTurbo, alibabaWanx21I2vPlus, alibabaWanx21I2vTurbo, alibabaWanx21T2iPlus, alibabaWanx21T2iTurbo, alibabaWanx21T2vPlus, alibabaWanx21T2vTurbo, alibabaWanx22I2vFlash, alibabaWanx22I2vPlus, alibabaWanx22T2vPlus, alibabaWanx25I2vPreview, alibabaWanx25T2vPreview, alibabaWanx26I2v, alibabaWanx26Reference, alibabaWanx26T2v, blackforestlabsFlux11Pro, blackforestlabsFlux1Pro, blackforestlabsFlux2Flex, blackforestlabsFlux2FlexEdit, blackforestlabsFlux2Pro, blackforestlabsFlux2ProEdit, blackforestlabsFluxKontextMax, blackforestlabsFluxKontextPro, createAndWaitTask, createConfig, elevenlabsTtsGenerator, getClient, getDefaultPollingOptions, googleGemini3ProImage, googleGeminiImage, googleImagen4FastGenerate, googleImagen4Generate, googleImagen4UltraGenerate, googleVeo20Generate001, googleVeo20GenerateExp, googleVeo20GeneratePreview, googleVeo30FastGenerate001, googleVeo30Generate001, googleVeo31, initSeacloud, klingAvatar, klingDurationExtension, klingEffectsMultiV1, klingEffectsMultiV15, klingEffectsMultiV16, klingEffectsSingle, klingLipsync, klingOmniImage, klingOmniVideo, klingV1, klingV15, klingV15I2v, klingV16, klingV16I2v, klingV1I2v, klingV21I2v, klingV21Master, klingV21MasterI2v, klingV25Turbo, klingV25TurboI2v, klingV26, klingV26I2v, klingV2Master, klingV2MasterI2v, llmChatCompletions, microsoftGptImage1, microsoftGptImage15, microsoftSora2, minimaxHailuo02, minimaxHailuo02I2v, minimaxHailuo23FastI2v, minimaxHailuo23I2v, minimaxI2v01, minimaxI2v01Director, minimaxI2v01Live, minimaxT2a, minimaxT2v01, minimaxT2v01Director, pixverseV35I2v, pixverseV35T2v, pixverseV35Transition, pixverseV45I2v, pixverseV45T2v, pixverseV45Transition, pixverseV4I2v, pixverseV4T2v, pixverseV4Transition, pixverseV55I2v, pixverseV55T2v, pixverseV55Transition, pixverseV5I2v, pixverseV5T2v, pixverseV5Transition, pollTaskUntilComplete, resetConfig, runwayGen3aTurboI2v, setDefaultPollingOptions, tencentHunyuan3d, tencentHunyuan3dPro, tencentHunyuan3dRapid, tencentImageCreation3, tencentMpsSuperResolution, validateConfig, vidu15, vidu15I2v, vidu20I2v, viduQ1, viduQ1I2v, viduQ2, viduTemplate, viduTemplateV2, volcesJimeng30, volcesJimeng31, volcesJimengDreamActorM1, volcesJimengI2i30, volcesRealmanAvatarImitatorV2v, volcesRealmanAvatarPictureOmniV15, volcesRealmanAvatarPictureOmniV2, volcesSeed3d, volcesSeedance30, volcesSeedance30I2v, volcesSeedance30Pro, volcesSeedanceProFast, volcesSeededit20, volcesSeededit30, volcesSeededit30I2i, volcesSeededit3dStyle, volcesSeededitMultiIp, volcesSeededitMultiStyle, volcesSeededitPortrait, volcesSeededitSingleIp, volcesSeedream30, volcesSeedream40, volcesSeedream45, volcesSeedream45I2i, volcesSeedream45MultiBlend, volcesSubjectDetection, volcesSubjectRecognition };
|
package/dist/index.js
CHANGED
|
@@ -4998,6 +4998,88 @@ async function volcesSubjectRecognition(params) {
|
|
|
4998
4998
|
return resources;
|
|
4999
4999
|
}
|
|
5000
5000
|
|
|
5001
|
-
|
|
5001
|
+
// src/api/llm_chat_completions.ts
|
|
5002
|
+
async function llmChatCompletions(params) {
|
|
5003
|
+
const client = getClient();
|
|
5004
|
+
const config = client.getConfig();
|
|
5005
|
+
const url = `${config.baseUrl}/llm/chat/completions`;
|
|
5006
|
+
const controller = new AbortController();
|
|
5007
|
+
const timeoutId = setTimeout(() => controller.abort(), config.timeout);
|
|
5008
|
+
try {
|
|
5009
|
+
const response = await config.fetch(url, {
|
|
5010
|
+
method: "POST",
|
|
5011
|
+
headers: {
|
|
5012
|
+
"Content-Type": "application/json",
|
|
5013
|
+
"Authorization": `Bearer ${config.apiKey}`
|
|
5014
|
+
},
|
|
5015
|
+
body: JSON.stringify(params),
|
|
5016
|
+
signal: controller.signal
|
|
5017
|
+
});
|
|
5018
|
+
clearTimeout(timeoutId);
|
|
5019
|
+
if (!response.ok) {
|
|
5020
|
+
const errorBody = await response.text();
|
|
5021
|
+
throw new SeacloudError(
|
|
5022
|
+
`HTTP ${response.status}: ${errorBody}`,
|
|
5023
|
+
response.status,
|
|
5024
|
+
errorBody
|
|
5025
|
+
);
|
|
5026
|
+
}
|
|
5027
|
+
if (params.stream) {
|
|
5028
|
+
return parseStreamingResponse(response);
|
|
5029
|
+
}
|
|
5030
|
+
const result = await response.json();
|
|
5031
|
+
return result;
|
|
5032
|
+
} catch (error) {
|
|
5033
|
+
clearTimeout(timeoutId);
|
|
5034
|
+
if (error instanceof SeacloudError) {
|
|
5035
|
+
throw error;
|
|
5036
|
+
}
|
|
5037
|
+
if (error.name === "AbortError") {
|
|
5038
|
+
throw new SeacloudError(`Request timeout after ${config.timeout}ms`);
|
|
5039
|
+
}
|
|
5040
|
+
throw new SeacloudError(
|
|
5041
|
+
`Request failed: ${error.message}`,
|
|
5042
|
+
void 0,
|
|
5043
|
+
error
|
|
5044
|
+
);
|
|
5045
|
+
}
|
|
5046
|
+
}
|
|
5047
|
+
async function* parseStreamingResponse(response) {
|
|
5048
|
+
const reader = response.body?.getReader();
|
|
5049
|
+
if (!reader) {
|
|
5050
|
+
throw new SeacloudError("Response body is not readable");
|
|
5051
|
+
}
|
|
5052
|
+
const decoder = new TextDecoder();
|
|
5053
|
+
let buffer = "";
|
|
5054
|
+
try {
|
|
5055
|
+
while (true) {
|
|
5056
|
+
const { done, value } = await reader.read();
|
|
5057
|
+
if (done) {
|
|
5058
|
+
break;
|
|
5059
|
+
}
|
|
5060
|
+
buffer += decoder.decode(value, { stream: true });
|
|
5061
|
+
const lines = buffer.split("\n");
|
|
5062
|
+
buffer = lines.pop() || "";
|
|
5063
|
+
for (const line of lines) {
|
|
5064
|
+
const trimmedLine = line.trim();
|
|
5065
|
+
if (!trimmedLine) continue;
|
|
5066
|
+
if (trimmedLine === "data: [DONE]") continue;
|
|
5067
|
+
if (trimmedLine.startsWith("data: ")) {
|
|
5068
|
+
const jsonStr = trimmedLine.slice(6);
|
|
5069
|
+
try {
|
|
5070
|
+
const chunk = JSON.parse(jsonStr);
|
|
5071
|
+
yield chunk;
|
|
5072
|
+
} catch (error) {
|
|
5073
|
+
console.warn("Failed to parse SSE chunk:", jsonStr);
|
|
5074
|
+
}
|
|
5075
|
+
}
|
|
5076
|
+
}
|
|
5077
|
+
}
|
|
5078
|
+
} finally {
|
|
5079
|
+
reader.releaseLock();
|
|
5080
|
+
}
|
|
5081
|
+
}
|
|
5082
|
+
|
|
5083
|
+
export { SeacloudClient, SeacloudError, alibabaAnimateAnyoneDetect, alibabaAnimateAnyoneTemplate, alibabaAnimateAnyoneVideo, alibabaQianwenImage, alibabaWan22T2iFlash, alibabaWan22T2iPlus, alibabaWan25I2iPreview, alibabaWan25T2iPreview, alibabaWanx20T2iTurbo, alibabaWanx21I2vPlus, alibabaWanx21I2vTurbo, alibabaWanx21T2iPlus, alibabaWanx21T2iTurbo, alibabaWanx21T2vPlus, alibabaWanx21T2vTurbo, alibabaWanx22I2vFlash, alibabaWanx22I2vPlus, alibabaWanx22T2vPlus, alibabaWanx25I2vPreview, alibabaWanx25T2vPreview, alibabaWanx26I2v, alibabaWanx26Reference, alibabaWanx26T2v, blackforestlabsFlux11Pro, blackforestlabsFlux1Pro, blackforestlabsFlux2Flex, blackforestlabsFlux2FlexEdit, blackforestlabsFlux2Pro, blackforestlabsFlux2ProEdit, blackforestlabsFluxKontextMax, blackforestlabsFluxKontextPro, createAndWaitTask, createConfig, elevenlabsTtsGenerator, getClient, getDefaultPollingOptions, googleGemini3ProImage, googleGeminiImage, googleImagen4FastGenerate, googleImagen4Generate, googleImagen4UltraGenerate, googleVeo20Generate001, googleVeo20GenerateExp, googleVeo20GeneratePreview, googleVeo30FastGenerate001, googleVeo30Generate001, googleVeo31, initSeacloud, klingAvatar, klingDurationExtension, klingEffectsMultiV1, klingEffectsMultiV15, klingEffectsMultiV16, klingEffectsSingle, klingLipsync, klingOmniImage, klingOmniVideo, klingV1, klingV15, klingV15I2v, klingV16, klingV16I2v, klingV1I2v, klingV21I2v, klingV21Master, klingV21MasterI2v, klingV25Turbo, klingV25TurboI2v, klingV26, klingV26I2v, klingV2Master, klingV2MasterI2v, llmChatCompletions, microsoftGptImage1, microsoftGptImage15, microsoftSora2, minimaxHailuo02, minimaxHailuo02I2v, minimaxHailuo23FastI2v, minimaxHailuo23I2v, minimaxI2v01, minimaxI2v01Director, minimaxI2v01Live, minimaxT2a, minimaxT2v01, minimaxT2v01Director, pixverseV35I2v, pixverseV35T2v, pixverseV35Transition, pixverseV45I2v, pixverseV45T2v, pixverseV45Transition, pixverseV4I2v, pixverseV4T2v, pixverseV4Transition, pixverseV55I2v, pixverseV55T2v, pixverseV55Transition, pixverseV5I2v, pixverseV5T2v, pixverseV5Transition, pollTaskUntilComplete, resetConfig, runwayGen3aTurboI2v, setDefaultPollingOptions, tencentHunyuan3d, tencentHunyuan3dPro, tencentHunyuan3dRapid, tencentImageCreation3, tencentMpsSuperResolution, validateConfig, vidu15, vidu15I2v, vidu20I2v, viduQ1, viduQ1I2v, viduQ2, viduTemplate, viduTemplateV2, volcesJimeng30, volcesJimeng31, volcesJimengDreamActorM1, volcesJimengI2i30, volcesRealmanAvatarImitatorV2v, volcesRealmanAvatarPictureOmniV15, volcesRealmanAvatarPictureOmniV2, volcesSeed3d, volcesSeedance30, volcesSeedance30I2v, volcesSeedance30Pro, volcesSeedanceProFast, volcesSeededit20, volcesSeededit30, volcesSeededit30I2i, volcesSeededit3dStyle, volcesSeededitMultiIp, volcesSeededitMultiStyle, volcesSeededitPortrait, volcesSeededitSingleIp, volcesSeedream30, volcesSeedream40, volcesSeedream45, volcesSeedream45I2i, volcesSeedream45MultiBlend, volcesSubjectDetection, volcesSubjectRecognition };
|
|
5002
5084
|
//# sourceMappingURL=index.js.map
|
|
5003
5085
|
//# sourceMappingURL=index.js.map
|