@henjicc/ai-sdk 0.2.8
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/CHANGELOG.md +143 -0
- package/README.md +472 -0
- package/dist/capabilities/builtin-descriptors.d.ts +5 -0
- package/dist/capabilities/builtin-descriptors.js +32 -0
- package/dist/capabilities/client.d.ts +21 -0
- package/dist/capabilities/client.js +427 -0
- package/dist/capabilities/index.d.ts +5 -0
- package/dist/capabilities/index.js +5 -0
- package/dist/capabilities/media.d.ts +23 -0
- package/dist/capabilities/media.js +18 -0
- package/dist/capabilities/realtime.d.ts +2 -0
- package/dist/capabilities/realtime.js +1 -0
- package/dist/capabilities/speech-recognition/bailian/index.d.ts +3 -0
- package/dist/capabilities/speech-recognition/bailian/index.js +3 -0
- package/dist/capabilities/speech-recognition/bailian/module.d.ts +5 -0
- package/dist/capabilities/speech-recognition/bailian/module.js +232 -0
- package/dist/capabilities/speech-recognition/bailian/parse.d.ts +18 -0
- package/dist/capabilities/speech-recognition/bailian/parse.js +177 -0
- package/dist/capabilities/speech-recognition/bailian/presets.d.ts +17 -0
- package/dist/capabilities/speech-recognition/bailian/presets.js +53 -0
- package/dist/capabilities/speech-recognition/bailian/realtime/index.d.ts +3 -0
- package/dist/capabilities/speech-recognition/bailian/realtime/index.js +3 -0
- package/dist/capabilities/speech-recognition/bailian/realtime/module.d.ts +5 -0
- package/dist/capabilities/speech-recognition/bailian/realtime/module.js +303 -0
- package/dist/capabilities/speech-recognition/bailian/realtime/presets.d.ts +13 -0
- package/dist/capabilities/speech-recognition/bailian/realtime/presets.js +32 -0
- package/dist/capabilities/speech-recognition/bailian/realtime/protocol.d.ts +38 -0
- package/dist/capabilities/speech-recognition/bailian/realtime/protocol.js +192 -0
- package/dist/capabilities/speech-recognition/bailian/realtime/types.d.ts +19 -0
- package/dist/capabilities/speech-recognition/bailian/realtime/types.js +1 -0
- package/dist/capabilities/speech-recognition/bailian/types.d.ts +21 -0
- package/dist/capabilities/speech-recognition/bailian/types.js +1 -0
- package/dist/capabilities/speech-recognition/bailian/upload.d.ts +9 -0
- package/dist/capabilities/speech-recognition/bailian/upload.js +93 -0
- package/dist/capabilities/speech-recognition/groq/index.d.ts +4 -0
- package/dist/capabilities/speech-recognition/groq/index.js +4 -0
- package/dist/capabilities/speech-recognition/groq/module.d.ts +5 -0
- package/dist/capabilities/speech-recognition/groq/module.js +226 -0
- package/dist/capabilities/speech-recognition/groq/parse.d.ts +3 -0
- package/dist/capabilities/speech-recognition/groq/parse.js +109 -0
- package/dist/capabilities/speech-recognition/groq/presets.d.ts +9 -0
- package/dist/capabilities/speech-recognition/groq/presets.js +23 -0
- package/dist/capabilities/speech-recognition/groq/types.d.ts +14 -0
- package/dist/capabilities/speech-recognition/groq/types.js +1 -0
- package/dist/capabilities/speech-recognition/index.d.ts +72 -0
- package/dist/capabilities/speech-recognition/index.js +25 -0
- package/dist/capabilities/speech-recognition/siliconflow/index.d.ts +3 -0
- package/dist/capabilities/speech-recognition/siliconflow/index.js +3 -0
- package/dist/capabilities/speech-recognition/siliconflow/module.d.ts +5 -0
- package/dist/capabilities/speech-recognition/siliconflow/module.js +183 -0
- package/dist/capabilities/speech-recognition/siliconflow/presets.d.ts +9 -0
- package/dist/capabilities/speech-recognition/siliconflow/presets.js +23 -0
- package/dist/capabilities/speech-recognition/siliconflow/types.d.ts +6 -0
- package/dist/capabilities/speech-recognition/siliconflow/types.js +1 -0
- package/dist/capabilities/speech-recognition/volcengine/index.d.ts +3 -0
- package/dist/capabilities/speech-recognition/volcengine/index.js +3 -0
- package/dist/capabilities/speech-recognition/volcengine/module.d.ts +5 -0
- package/dist/capabilities/speech-recognition/volcengine/module.js +260 -0
- package/dist/capabilities/speech-recognition/volcengine/parse.d.ts +5 -0
- package/dist/capabilities/speech-recognition/volcengine/parse.js +73 -0
- package/dist/capabilities/speech-recognition/volcengine/presets.d.ts +8 -0
- package/dist/capabilities/speech-recognition/volcengine/presets.js +21 -0
- package/dist/capabilities/speech-recognition/volcengine/realtime/index.d.ts +3 -0
- package/dist/capabilities/speech-recognition/volcengine/realtime/index.js +3 -0
- package/dist/capabilities/speech-recognition/volcengine/realtime/module.d.ts +5 -0
- package/dist/capabilities/speech-recognition/volcengine/realtime/module.js +450 -0
- package/dist/capabilities/speech-recognition/volcengine/realtime/presets.d.ts +8 -0
- package/dist/capabilities/speech-recognition/volcengine/realtime/presets.js +23 -0
- package/dist/capabilities/speech-recognition/volcengine/realtime/protocol.d.ts +21 -0
- package/dist/capabilities/speech-recognition/volcengine/realtime/protocol.js +223 -0
- package/dist/capabilities/speech-recognition/volcengine/realtime/types.d.ts +13 -0
- package/dist/capabilities/speech-recognition/volcengine/realtime/types.js +1 -0
- package/dist/capabilities/speech-recognition/volcengine/request-id.d.ts +1 -0
- package/dist/capabilities/speech-recognition/volcengine/request-id.js +27 -0
- package/dist/capabilities/speech-recognition/volcengine/types.d.ts +15 -0
- package/dist/capabilities/speech-recognition/volcengine/types.js +1 -0
- package/dist/capabilities/translation/bailian/index.d.ts +4 -0
- package/dist/capabilities/translation/bailian/index.js +4 -0
- package/dist/capabilities/translation/bailian/languages.d.ts +6 -0
- package/dist/capabilities/translation/bailian/languages.js +47 -0
- package/dist/capabilities/translation/bailian/module.d.ts +6 -0
- package/dist/capabilities/translation/bailian/module.js +310 -0
- package/dist/capabilities/translation/bailian/sse.d.ts +19 -0
- package/dist/capabilities/translation/bailian/sse.js +145 -0
- package/dist/capabilities/translation/bailian/types.d.ts +28 -0
- package/dist/capabilities/translation/bailian/types.js +13 -0
- package/dist/capabilities/translation/index.d.ts +62 -0
- package/dist/capabilities/translation/index.js +18 -0
- package/dist/capabilities/types.d.ts +81 -0
- package/dist/capabilities/types.js +1 -0
- package/dist/capabilities/validation.d.ts +8 -0
- package/dist/capabilities/validation.js +74 -0
- package/dist/catalog/apimart/gemini-omni-flash.model.d.ts +3 -0
- package/dist/catalog/apimart/gemini-omni-flash.model.js +185 -0
- package/dist/catalog/apimart/gpt-image-2.model.d.ts +3 -0
- package/dist/catalog/apimart/gpt-image-2.model.js +174 -0
- package/dist/catalog/apimart/grok-imagine-2.0.model.d.ts +3 -0
- package/dist/catalog/apimart/grok-imagine-2.0.model.js +145 -0
- package/dist/catalog/apimart/kling-3.0-omni.model.d.ts +3 -0
- package/dist/catalog/apimart/kling-3.0-omni.model.js +120 -0
- package/dist/catalog/apimart/kling-3.0-turbo.model.d.ts +3 -0
- package/dist/catalog/apimart/kling-3.0-turbo.model.js +54 -0
- package/dist/catalog/apimart/kling-3.0.model.d.ts +3 -0
- package/dist/catalog/apimart/kling-3.0.model.js +65 -0
- package/dist/catalog/apimart/midjourney-video.model.d.ts +3 -0
- package/dist/catalog/apimart/midjourney-video.model.js +113 -0
- package/dist/catalog/apimart/midjourney.model.d.ts +3 -0
- package/dist/catalog/apimart/midjourney.model.js +307 -0
- package/dist/catalog/apimart/minimax-h3.model.d.ts +3 -0
- package/dist/catalog/apimart/minimax-h3.model.js +107 -0
- package/dist/catalog/apimart/nano-banana-2-lite.model.d.ts +3 -0
- package/dist/catalog/apimart/nano-banana-2-lite.model.js +78 -0
- package/dist/catalog/apimart/nano-banana-2.model.d.ts +3 -0
- package/dist/catalog/apimart/nano-banana-2.model.js +92 -0
- package/dist/catalog/apimart/nano-banana-pro.model.d.ts +3 -0
- package/dist/catalog/apimart/nano-banana-pro.model.js +78 -0
- package/dist/catalog/apimart/qwen-image-3.0.model.d.ts +3 -0
- package/dist/catalog/apimart/qwen-image-3.0.model.js +92 -0
- package/dist/catalog/apimart/seedance-2.0-fast.model.d.ts +2 -0
- package/dist/catalog/apimart/seedance-2.0-fast.model.js +108 -0
- package/dist/catalog/apimart/seedance-2.0-mini.model.d.ts +2 -0
- package/dist/catalog/apimart/seedance-2.0-mini.model.js +108 -0
- package/dist/catalog/apimart/seedance-2.0.model.d.ts +2 -0
- package/dist/catalog/apimart/seedance-2.0.model.js +114 -0
- package/dist/catalog/apimart/seedance-2.5.model.d.ts +2 -0
- package/dist/catalog/apimart/seedance-2.5.model.js +137 -0
- package/dist/catalog/apimart/seedream-5.0-lite.model.d.ts +2 -0
- package/dist/catalog/apimart/seedream-5.0-lite.model.js +78 -0
- package/dist/catalog/apimart/seedream-5.0-pro.model.d.ts +2 -0
- package/dist/catalog/apimart/seedream-5.0-pro.model.js +145 -0
- package/dist/catalog/apimart/z-image-turbo.model.d.ts +2 -0
- package/dist/catalog/apimart/z-image-turbo.model.js +50 -0
- package/dist/catalog/bailian/qwen-image-3.0.model.d.ts +3 -0
- package/dist/catalog/bailian/qwen-image-3.0.model.js +90 -0
- package/dist/catalog/bailian/z-image-turbo.model.d.ts +3 -0
- package/dist/catalog/bailian/z-image-turbo.model.js +56 -0
- package/dist/catalog/conditions/evaluate.d.ts +15 -0
- package/dist/catalog/conditions/evaluate.js +98 -0
- package/dist/catalog/conditions/index.d.ts +3 -0
- package/dist/catalog/conditions/index.js +3 -0
- package/dist/catalog/conditions/parser.d.ts +20 -0
- package/dist/catalog/conditions/parser.js +107 -0
- package/dist/catalog/conditions/tokens.d.ts +11 -0
- package/dist/catalog/conditions/tokens.js +88 -0
- package/dist/catalog/consumer-contract.d.ts +45 -0
- package/dist/catalog/consumer-contract.js +123 -0
- package/dist/catalog/defineModel.d.ts +17 -0
- package/dist/catalog/defineModel.js +25 -0
- package/dist/catalog/fal/bria-creative-upscale.model.d.ts +2 -0
- package/dist/catalog/fal/bria-creative-upscale.model.js +32 -0
- package/dist/catalog/fal/gemini-omni-flash.model.d.ts +2 -0
- package/dist/catalog/fal/gemini-omni-flash.model.js +76 -0
- package/dist/catalog/fal/gpt-image-2.model.d.ts +2 -0
- package/dist/catalog/fal/gpt-image-2.model.js +141 -0
- package/dist/catalog/fal/grok-imagine-2.0.model.d.ts +2 -0
- package/dist/catalog/fal/grok-imagine-2.0.model.js +86 -0
- package/dist/catalog/fal/hailuo-02.model.d.ts +2 -0
- package/dist/catalog/fal/hailuo-02.model.js +152 -0
- package/dist/catalog/fal/hailuo-2.3.model.d.ts +2 -0
- package/dist/catalog/fal/hailuo-2.3.model.js +109 -0
- package/dist/catalog/fal/ic-light-v2.model.d.ts +2 -0
- package/dist/catalog/fal/ic-light-v2.model.js +83 -0
- package/dist/catalog/fal/ideogram-upscale.model.d.ts +2 -0
- package/dist/catalog/fal/ideogram-upscale.model.js +50 -0
- package/dist/catalog/fal/imageSizing.d.ts +3 -0
- package/dist/catalog/fal/imageSizing.js +12 -0
- package/dist/catalog/fal/imageUpscale.d.ts +4 -0
- package/dist/catalog/fal/imageUpscale.js +23 -0
- package/dist/catalog/fal/kling-3.0-omni.model.d.ts +2 -0
- package/dist/catalog/fal/kling-3.0-omni.model.js +99 -0
- package/dist/catalog/fal/kling-3.0-turbo.model.d.ts +2 -0
- package/dist/catalog/fal/kling-3.0-turbo.model.js +67 -0
- package/dist/catalog/fal/kling-3.0.model.d.ts +2 -0
- package/dist/catalog/fal/kling-3.0.model.js +80 -0
- package/dist/catalog/fal/kling-image-o1.model.d.ts +2 -0
- package/dist/catalog/fal/kling-image-o1.model.js +93 -0
- package/dist/catalog/fal/kling-video-o1.model.d.ts +2 -0
- package/dist/catalog/fal/kling-video-o1.model.js +167 -0
- package/dist/catalog/fal/kling-video-v2.6-pro.model.d.ts +2 -0
- package/dist/catalog/fal/kling-video-v2.6-pro.model.js +231 -0
- package/dist/catalog/fal/ltx-2.model.d.ts +2 -0
- package/dist/catalog/fal/ltx-2.model.js +221 -0
- package/dist/catalog/fal/minimax-h3.model.d.ts +2 -0
- package/dist/catalog/fal/minimax-h3.model.js +154 -0
- package/dist/catalog/fal/nano-banana-2.model.d.ts +2 -0
- package/dist/catalog/fal/nano-banana-2.model.js +126 -0
- package/dist/catalog/fal/nano-banana-pro.model.d.ts +2 -0
- package/dist/catalog/fal/nano-banana-pro.model.js +82 -0
- package/dist/catalog/fal/nano-banana.model.d.ts +2 -0
- package/dist/catalog/fal/nano-banana.model.js +86 -0
- package/dist/catalog/fal/pixverse-v5.5.model.d.ts +2 -0
- package/dist/catalog/fal/pixverse-v5.5.model.js +176 -0
- package/dist/catalog/fal/qwen-image-3.0.model.d.ts +2 -0
- package/dist/catalog/fal/qwen-image-3.0.model.js +90 -0
- package/dist/catalog/fal/seedance-2.0-fast.model.d.ts +2 -0
- package/dist/catalog/fal/seedance-2.0-fast.model.js +130 -0
- package/dist/catalog/fal/seedance-2.0-mini.model.d.ts +2 -0
- package/dist/catalog/fal/seedance-2.0-mini.model.js +124 -0
- package/dist/catalog/fal/seedance-2.0.model.d.ts +2 -0
- package/dist/catalog/fal/seedance-2.0.model.js +133 -0
- package/dist/catalog/fal/seedance-2.5.model.d.ts +2 -0
- package/dist/catalog/fal/seedance-2.5.model.js +133 -0
- package/dist/catalog/fal/seedance.model.d.ts +2 -0
- package/dist/catalog/fal/seedance.model.js +173 -0
- package/dist/catalog/fal/seedream-5.0-lite.model.d.ts +2 -0
- package/dist/catalog/fal/seedream-5.0-lite.model.js +92 -0
- package/dist/catalog/fal/seedream-5.0-pro.model.d.ts +2 -0
- package/dist/catalog/fal/seedream-5.0-pro.model.js +89 -0
- package/dist/catalog/fal/seedream-v4.5.model.d.ts +2 -0
- package/dist/catalog/fal/seedream-v4.5.model.js +154 -0
- package/dist/catalog/fal/seedream-v4.model.d.ts +2 -0
- package/dist/catalog/fal/seedream-v4.model.js +152 -0
- package/dist/catalog/fal/seedvr2-image-upscale.model.d.ts +3 -0
- package/dist/catalog/fal/seedvr2-image-upscale.model.js +73 -0
- package/dist/catalog/fal/topaz-image-upscale.model.d.ts +7 -0
- package/dist/catalog/fal/topaz-image-upscale.model.js +200 -0
- package/dist/catalog/fal/topaz-transparent-upscale.model.d.ts +2 -0
- package/dist/catalog/fal/topaz-transparent-upscale.model.js +35 -0
- package/dist/catalog/fal/utils/index.d.ts +9 -0
- package/dist/catalog/fal/utils/index.js +19 -0
- package/dist/catalog/fal/veo-3.1.model.d.ts +2 -0
- package/dist/catalog/fal/veo-3.1.model.js +196 -0
- package/dist/catalog/fal/vidu-q2.model.d.ts +2 -0
- package/dist/catalog/fal/vidu-q2.model.js +214 -0
- package/dist/catalog/fal/wan-2.5-preview.model.d.ts +2 -0
- package/dist/catalog/fal/wan-2.5-preview.model.js +116 -0
- package/dist/catalog/fal/z-image-turbo.model.d.ts +2 -0
- package/dist/catalog/fal/z-image-turbo.model.js +125 -0
- package/dist/catalog/grsai/gpt-image-2.model.d.ts +3 -0
- package/dist/catalog/grsai/gpt-image-2.model.js +117 -0
- package/dist/catalog/grsai/nano-banana-2-lite.model.d.ts +12 -0
- package/dist/catalog/grsai/nano-banana-2-lite.model.js +75 -0
- package/dist/catalog/grsai/nano-banana-2.model.d.ts +3 -0
- package/dist/catalog/grsai/nano-banana-2.model.js +100 -0
- package/dist/catalog/grsai/nano-banana-pro.model.d.ts +3 -0
- package/dist/catalog/grsai/nano-banana-pro.model.js +106 -0
- package/dist/catalog/index.d.ts +13 -0
- package/dist/catalog/index.js +224 -0
- package/dist/catalog/kie/gemini-omni-video.model.d.ts +2 -0
- package/dist/catalog/kie/gemini-omni-video.model.js +197 -0
- package/dist/catalog/kie/gpt-image-2.model.d.ts +2 -0
- package/dist/catalog/kie/gpt-image-2.model.js +151 -0
- package/dist/catalog/kie/grok-imagine-2.0.model.d.ts +2 -0
- package/dist/catalog/kie/grok-imagine-2.0.model.js +70 -0
- package/dist/catalog/kie/grok-imagine-video.model.d.ts +2 -0
- package/dist/catalog/kie/grok-imagine-video.model.js +108 -0
- package/dist/catalog/kie/grok-imagine.model.d.ts +2 -0
- package/dist/catalog/kie/grok-imagine.model.js +105 -0
- package/dist/catalog/kie/hailuo-02.model.d.ts +2 -0
- package/dist/catalog/kie/hailuo-02.model.js +125 -0
- package/dist/catalog/kie/hailuo-2-3.model.d.ts +2 -0
- package/dist/catalog/kie/hailuo-2-3.model.js +124 -0
- package/dist/catalog/kie/kling-3.0-omni.model.d.ts +2 -0
- package/dist/catalog/kie/kling-3.0-omni.model.js +209 -0
- package/dist/catalog/kie/kling-3.0-turbo.model.d.ts +2 -0
- package/dist/catalog/kie/kling-3.0-turbo.model.js +90 -0
- package/dist/catalog/kie/kling-3.0.model.d.ts +2 -0
- package/dist/catalog/kie/kling-3.0.model.js +122 -0
- package/dist/catalog/kie/kling-v2-6.model.d.ts +2 -0
- package/dist/catalog/kie/kling-v2-6.model.js +203 -0
- package/dist/catalog/kie/mediaSources.d.ts +6 -0
- package/dist/catalog/kie/mediaSources.js +29 -0
- package/dist/catalog/kie/minimax-h3.model.d.ts +2 -0
- package/dist/catalog/kie/minimax-h3.model.js +153 -0
- package/dist/catalog/kie/nano-banana-2-lite.model.d.ts +2 -0
- package/dist/catalog/kie/nano-banana-2-lite.model.js +92 -0
- package/dist/catalog/kie/nano-banana-2.model.d.ts +2 -0
- package/dist/catalog/kie/nano-banana-2.model.js +120 -0
- package/dist/catalog/kie/nano-banana-pro.model.d.ts +2 -0
- package/dist/catalog/kie/nano-banana-pro.model.js +94 -0
- package/dist/catalog/kie/qwen-image-3.0.model.d.ts +2 -0
- package/dist/catalog/kie/qwen-image-3.0.model.js +122 -0
- package/dist/catalog/kie/seedance-1.5-pro.model.d.ts +2 -0
- package/dist/catalog/kie/seedance-1.5-pro.model.js +142 -0
- package/dist/catalog/kie/seedance-2.0-fast.model.d.ts +2 -0
- package/dist/catalog/kie/seedance-2.0-fast.model.js +196 -0
- package/dist/catalog/kie/seedance-2.0-mini.model.d.ts +2 -0
- package/dist/catalog/kie/seedance-2.0-mini.model.js +189 -0
- package/dist/catalog/kie/seedance-2.0.model.d.ts +2 -0
- package/dist/catalog/kie/seedance-2.0.model.js +200 -0
- package/dist/catalog/kie/seedance-2.5.model.d.ts +2 -0
- package/dist/catalog/kie/seedance-2.5.model.js +187 -0
- package/dist/catalog/kie/seedance-v1.model.d.ts +2 -0
- package/dist/catalog/kie/seedance-v1.model.js +229 -0
- package/dist/catalog/kie/seedream-4.0.model.d.ts +2 -0
- package/dist/catalog/kie/seedream-4.0.model.js +150 -0
- package/dist/catalog/kie/seedream-4.5.model.d.ts +2 -0
- package/dist/catalog/kie/seedream-4.5.model.js +116 -0
- package/dist/catalog/kie/seedream-5.0-lite.model.d.ts +2 -0
- package/dist/catalog/kie/seedream-5.0-lite.model.js +110 -0
- package/dist/catalog/kie/seedream-5.0-pro.model.d.ts +2 -0
- package/dist/catalog/kie/seedream-5.0-pro.model.js +179 -0
- package/dist/catalog/kie/z-image.model.d.ts +2 -0
- package/dist/catalog/kie/z-image.model.js +67 -0
- package/dist/catalog/model-index.d.ts +14 -0
- package/dist/catalog/model-index.js +32 -0
- package/dist/catalog/modelscope/customModelRegistry.d.ts +26 -0
- package/dist/catalog/modelscope/customModelRegistry.js +26 -0
- package/dist/catalog/modelscope/flux-1-krea-dev.model.d.ts +5 -0
- package/dist/catalog/modelscope/flux-1-krea-dev.model.js +84 -0
- package/dist/catalog/modelscope/majicmix-realistic.model.d.ts +5 -0
- package/dist/catalog/modelscope/majicmix-realistic.model.js +84 -0
- package/dist/catalog/modelscope/modelscope-custom.model.d.ts +5 -0
- package/dist/catalog/modelscope/modelscope-custom.model.js +111 -0
- package/dist/catalog/modelscope/qwen-image-edit-2509.model.d.ts +5 -0
- package/dist/catalog/modelscope/qwen-image-edit-2509.model.js +83 -0
- package/dist/catalog/modelscope/qwen-image.model.d.ts +5 -0
- package/dist/catalog/modelscope/qwen-image.model.js +84 -0
- package/dist/catalog/modelscope/sdxl-14-ckpt.model.d.ts +5 -0
- package/dist/catalog/modelscope/sdxl-14-ckpt.model.js +84 -0
- package/dist/catalog/modelscope/utils.d.ts +33 -0
- package/dist/catalog/modelscope/utils.js +174 -0
- package/dist/catalog/modelscope/z-image-turbo.model.d.ts +5 -0
- package/dist/catalog/modelscope/z-image-turbo.model.js +75 -0
- package/dist/catalog/ppio/kling-3.0.model.d.ts +2 -0
- package/dist/catalog/ppio/kling-3.0.model.js +288 -0
- package/dist/catalog/ppio/mediaSources.d.ts +6 -0
- package/dist/catalog/ppio/mediaSources.js +29 -0
- package/dist/catalog/ppio/minimax-hailuo-2.3.model.d.ts +7 -0
- package/dist/catalog/ppio/minimax-hailuo-2.3.model.js +114 -0
- package/dist/catalog/ppio/minimax-speech.model.d.ts +2 -0
- package/dist/catalog/ppio/minimax-speech.model.js +336 -0
- package/dist/catalog/ppio/wan-2.5-preview.model.d.ts +7 -0
- package/dist/catalog/ppio/wan-2.5-preview.model.js +198 -0
- package/dist/catalog/ppio/wan-2.6.model.d.ts +7 -0
- package/dist/catalog/ppio/wan-2.6.model.js +206 -0
- package/dist/catalog/ppio/wan-2.7.model.d.ts +2 -0
- package/dist/catalog/ppio/wan-2.7.model.js +373 -0
- package/dist/catalog/shared/mediaPresence.d.ts +24 -0
- package/dist/catalog/shared/mediaPresence.js +86 -0
- package/dist/catalog/shared/seedreamResolution.d.ts +35 -0
- package/dist/catalog/shared/seedreamResolution.js +206 -0
- package/dist/catalog/validate.d.ts +17 -0
- package/dist/catalog/validate.js +356 -0
- package/dist/catalog/volcengine/seedream-5.0-lite.model.d.ts +3 -0
- package/dist/catalog/volcengine/seedream-5.0-lite.model.js +83 -0
- package/dist/catalog/volcengine/seedream-5.0-pro.model.d.ts +3 -0
- package/dist/catalog/volcengine/seedream-5.0-pro.model.js +149 -0
- package/dist/client.d.ts +36 -0
- package/dist/client.js +38 -0
- package/dist/discovery/index.d.ts +77 -0
- package/dist/discovery/index.js +238 -0
- package/dist/generation/core.d.ts +96 -0
- package/dist/generation/core.js +318 -0
- package/dist/generation.d.ts +20 -0
- package/dist/generation.js +58 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +40 -0
- package/dist/llm/bigmodel/index.d.ts +3 -0
- package/dist/llm/bigmodel/index.js +3 -0
- package/dist/llm/bigmodel/preset.d.ts +11 -0
- package/dist/llm/bigmodel/preset.js +58 -0
- package/dist/llm/bigmodel/profiles.d.ts +21 -0
- package/dist/llm/bigmodel/profiles.js +65 -0
- package/dist/llm/chat.d.ts +66 -0
- package/dist/llm/chat.js +144 -0
- package/dist/llm/chatTypes.d.ts +88 -0
- package/dist/llm/chatTypes.js +1 -0
- package/dist/llm/defaults.d.ts +29 -0
- package/dist/llm/defaults.js +55 -0
- package/dist/llm/discovery.d.ts +45 -0
- package/dist/llm/discovery.js +97 -0
- package/dist/llm/endpointProfiles.d.ts +41 -0
- package/dist/llm/endpointProfiles.js +75 -0
- package/dist/llm/groq/index.d.ts +25 -0
- package/dist/llm/groq/index.js +30 -0
- package/dist/llm/groq/module.d.ts +6 -0
- package/dist/llm/groq/module.js +51 -0
- package/dist/llm/groq/preset.d.ts +9 -0
- package/dist/llm/groq/preset.js +50 -0
- package/dist/llm/index.d.ts +25 -0
- package/dist/llm/index.js +30 -0
- package/dist/llm/message-metrics.d.ts +3 -0
- package/dist/llm/message-metrics.js +11 -0
- package/dist/llm/modelCatalog.d.ts +60 -0
- package/dist/llm/modelCatalog.js +64 -0
- package/dist/llm/modelCatalogEntries.d.ts +15 -0
- package/dist/llm/modelCatalogEntries.js +274 -0
- package/dist/llm/modelStep.d.ts +327 -0
- package/dist/llm/modelStep.js +200 -0
- package/dist/llm/modules/client.d.ts +2 -0
- package/dist/llm/modules/client.js +365 -0
- package/dist/llm/modules/index.d.ts +4 -0
- package/dist/llm/modules/index.js +4 -0
- package/dist/llm/modules/result-validation.d.ts +5 -0
- package/dist/llm/modules/result-validation.js +54 -0
- package/dist/llm/modules/types.d.ts +102 -0
- package/dist/llm/modules/types.js +1 -0
- package/dist/llm/modules/validation.d.ts +7 -0
- package/dist/llm/modules/validation.js +90 -0
- package/dist/llm/providerPresets.d.ts +45 -0
- package/dist/llm/providerPresets.js +208 -0
- package/dist/llm/providerProtocol.d.ts +29 -0
- package/dist/llm/providerProtocol.js +25 -0
- package/dist/llm/providerProtocolCore.d.ts +4 -0
- package/dist/llm/providerProtocolCore.js +35 -0
- package/dist/llm/providerReasoningRequest.d.ts +4 -0
- package/dist/llm/providerReasoningRequest.js +101 -0
- package/dist/llm/providerSetup.d.ts +6 -0
- package/dist/llm/providerSetup.js +89 -0
- package/dist/llm/reasoning.d.ts +5 -0
- package/dist/llm/reasoning.js +1 -0
- package/dist/llm/requestContract.d.ts +6 -0
- package/dist/llm/requestContract.js +35 -0
- package/dist/llm/sdk/index.d.ts +14 -0
- package/dist/llm/sdk/index.js +14 -0
- package/dist/llm/sdk/modelStep.d.ts +24 -0
- package/dist/llm/sdk/modelStep.js +254 -0
- package/dist/llm/sdk/provider.d.ts +38 -0
- package/dist/llm/sdk/provider.js +335 -0
- package/dist/llm/sdk/providerAdapter.d.ts +53 -0
- package/dist/llm/sdk/providerAdapter.js +26 -0
- package/dist/llm/sdk/retryPolicy.d.ts +13 -0
- package/dist/llm/sdk/retryPolicy.js +67 -0
- package/dist/llm/sdk/runtime.d.ts +13 -0
- package/dist/llm/sdk/runtime.js +127 -0
- package/dist/llm/sdk/toolSchema.d.ts +28 -0
- package/dist/llm/sdk/toolSchema.js +59 -0
- package/dist/llm/streaming/index.d.ts +18 -0
- package/dist/llm/streaming/index.js +8 -0
- package/dist/llm/streaming.d.ts +25 -0
- package/dist/llm/streaming.js +330 -0
- package/dist/llm/types.d.ts +290 -0
- package/dist/llm/types.js +1 -0
- package/dist/llm/utf8-stream-decoder.d.ts +1 -0
- package/dist/llm/utf8-stream-decoder.js +2 -0
- package/dist/packs/models/apimart/gemini-omni-flash.d.ts +6 -0
- package/dist/packs/models/apimart/gemini-omni-flash.js +7 -0
- package/dist/packs/models/apimart/gpt-image-2.d.ts +6 -0
- package/dist/packs/models/apimart/gpt-image-2.js +7 -0
- package/dist/packs/models/apimart/grok-imagine-2.0.d.ts +6 -0
- package/dist/packs/models/apimart/grok-imagine-2.0.js +7 -0
- package/dist/packs/models/apimart/kling-3.0-omni.d.ts +6 -0
- package/dist/packs/models/apimart/kling-3.0-omni.js +7 -0
- package/dist/packs/models/apimart/kling-3.0-turbo.d.ts +6 -0
- package/dist/packs/models/apimart/kling-3.0-turbo.js +7 -0
- package/dist/packs/models/apimart/kling-3.0.d.ts +6 -0
- package/dist/packs/models/apimart/kling-3.0.js +7 -0
- package/dist/packs/models/apimart/midjourney-video.d.ts +6 -0
- package/dist/packs/models/apimart/midjourney-video.js +7 -0
- package/dist/packs/models/apimart/midjourney.d.ts +6 -0
- package/dist/packs/models/apimart/midjourney.js +7 -0
- package/dist/packs/models/apimart/minimax-h3.d.ts +6 -0
- package/dist/packs/models/apimart/minimax-h3.js +7 -0
- package/dist/packs/models/apimart/nano-banana-2-lite.d.ts +6 -0
- package/dist/packs/models/apimart/nano-banana-2-lite.js +7 -0
- package/dist/packs/models/apimart/nano-banana-2.d.ts +6 -0
- package/dist/packs/models/apimart/nano-banana-2.js +7 -0
- package/dist/packs/models/apimart/nano-banana-pro.d.ts +6 -0
- package/dist/packs/models/apimart/nano-banana-pro.js +7 -0
- package/dist/packs/models/apimart/qwen-image-3.0.d.ts +6 -0
- package/dist/packs/models/apimart/qwen-image-3.0.js +7 -0
- package/dist/packs/models/apimart/seedance-2.0-fast.d.ts +6 -0
- package/dist/packs/models/apimart/seedance-2.0-fast.js +7 -0
- package/dist/packs/models/apimart/seedance-2.0-mini.d.ts +6 -0
- package/dist/packs/models/apimart/seedance-2.0-mini.js +7 -0
- package/dist/packs/models/apimart/seedance-2.0.d.ts +6 -0
- package/dist/packs/models/apimart/seedance-2.0.js +7 -0
- package/dist/packs/models/apimart/seedance-2.5.d.ts +6 -0
- package/dist/packs/models/apimart/seedance-2.5.js +7 -0
- package/dist/packs/models/apimart/seedream-5.0-lite.d.ts +6 -0
- package/dist/packs/models/apimart/seedream-5.0-lite.js +7 -0
- package/dist/packs/models/apimart/seedream-5.0-pro.d.ts +6 -0
- package/dist/packs/models/apimart/seedream-5.0-pro.js +7 -0
- package/dist/packs/models/apimart/z-image-turbo.d.ts +6 -0
- package/dist/packs/models/apimart/z-image-turbo.js +7 -0
- package/dist/packs/models/bailian/qwen-image-3.0.d.ts +6 -0
- package/dist/packs/models/bailian/qwen-image-3.0.js +7 -0
- package/dist/packs/models/bailian/z-image-turbo.d.ts +6 -0
- package/dist/packs/models/bailian/z-image-turbo.js +7 -0
- package/dist/packs/models/fal/bria-creative-upscale.d.ts +6 -0
- package/dist/packs/models/fal/bria-creative-upscale.js +7 -0
- package/dist/packs/models/fal/gemini-omni-flash.d.ts +6 -0
- package/dist/packs/models/fal/gemini-omni-flash.js +7 -0
- package/dist/packs/models/fal/gpt-image-2.d.ts +6 -0
- package/dist/packs/models/fal/gpt-image-2.js +7 -0
- package/dist/packs/models/fal/grok-imagine-2.0.d.ts +6 -0
- package/dist/packs/models/fal/grok-imagine-2.0.js +7 -0
- package/dist/packs/models/fal/hailuo-02.d.ts +6 -0
- package/dist/packs/models/fal/hailuo-02.js +7 -0
- package/dist/packs/models/fal/hailuo-2.3.d.ts +6 -0
- package/dist/packs/models/fal/hailuo-2.3.js +7 -0
- package/dist/packs/models/fal/ic-light-v2.d.ts +6 -0
- package/dist/packs/models/fal/ic-light-v2.js +7 -0
- package/dist/packs/models/fal/ideogram-upscale.d.ts +6 -0
- package/dist/packs/models/fal/ideogram-upscale.js +7 -0
- package/dist/packs/models/fal/kling-3.0-omni.d.ts +6 -0
- package/dist/packs/models/fal/kling-3.0-omni.js +7 -0
- package/dist/packs/models/fal/kling-3.0-turbo.d.ts +6 -0
- package/dist/packs/models/fal/kling-3.0-turbo.js +7 -0
- package/dist/packs/models/fal/kling-3.0.d.ts +6 -0
- package/dist/packs/models/fal/kling-3.0.js +7 -0
- package/dist/packs/models/fal/kling-image-o1.d.ts +6 -0
- package/dist/packs/models/fal/kling-image-o1.js +7 -0
- package/dist/packs/models/fal/kling-video-o1.d.ts +6 -0
- package/dist/packs/models/fal/kling-video-o1.js +7 -0
- package/dist/packs/models/fal/kling-video-v2.6-pro.d.ts +6 -0
- package/dist/packs/models/fal/kling-video-v2.6-pro.js +7 -0
- package/dist/packs/models/fal/ltx-2.d.ts +6 -0
- package/dist/packs/models/fal/ltx-2.js +7 -0
- package/dist/packs/models/fal/minimax-h3.d.ts +6 -0
- package/dist/packs/models/fal/minimax-h3.js +7 -0
- package/dist/packs/models/fal/nano-banana-2.d.ts +6 -0
- package/dist/packs/models/fal/nano-banana-2.js +7 -0
- package/dist/packs/models/fal/nano-banana-pro.d.ts +6 -0
- package/dist/packs/models/fal/nano-banana-pro.js +7 -0
- package/dist/packs/models/fal/nano-banana.d.ts +6 -0
- package/dist/packs/models/fal/nano-banana.js +7 -0
- package/dist/packs/models/fal/pixverse-v5.5.d.ts +6 -0
- package/dist/packs/models/fal/pixverse-v5.5.js +7 -0
- package/dist/packs/models/fal/qwen-image-3.0.d.ts +6 -0
- package/dist/packs/models/fal/qwen-image-3.0.js +7 -0
- package/dist/packs/models/fal/seedance-2.0-fast.d.ts +6 -0
- package/dist/packs/models/fal/seedance-2.0-fast.js +7 -0
- package/dist/packs/models/fal/seedance-2.0-mini.d.ts +6 -0
- package/dist/packs/models/fal/seedance-2.0-mini.js +7 -0
- package/dist/packs/models/fal/seedance-2.0.d.ts +6 -0
- package/dist/packs/models/fal/seedance-2.0.js +7 -0
- package/dist/packs/models/fal/seedance-2.5.d.ts +6 -0
- package/dist/packs/models/fal/seedance-2.5.js +7 -0
- package/dist/packs/models/fal/seedance.d.ts +6 -0
- package/dist/packs/models/fal/seedance.js +7 -0
- package/dist/packs/models/fal/seedream-5.0-lite.d.ts +6 -0
- package/dist/packs/models/fal/seedream-5.0-lite.js +7 -0
- package/dist/packs/models/fal/seedream-5.0-pro.d.ts +6 -0
- package/dist/packs/models/fal/seedream-5.0-pro.js +7 -0
- package/dist/packs/models/fal/seedream-v4.5.d.ts +6 -0
- package/dist/packs/models/fal/seedream-v4.5.js +7 -0
- package/dist/packs/models/fal/seedream-v4.d.ts +6 -0
- package/dist/packs/models/fal/seedream-v4.js +7 -0
- package/dist/packs/models/fal/seedvr2-image-upscale.d.ts +6 -0
- package/dist/packs/models/fal/seedvr2-image-upscale.js +7 -0
- package/dist/packs/models/fal/topaz-image-upscale.d.ts +6 -0
- package/dist/packs/models/fal/topaz-image-upscale.js +7 -0
- package/dist/packs/models/fal/topaz-transparent-upscale.d.ts +6 -0
- package/dist/packs/models/fal/topaz-transparent-upscale.js +7 -0
- package/dist/packs/models/fal/veo-3.1.d.ts +6 -0
- package/dist/packs/models/fal/veo-3.1.js +7 -0
- package/dist/packs/models/fal/vidu-q2.d.ts +6 -0
- package/dist/packs/models/fal/vidu-q2.js +7 -0
- package/dist/packs/models/fal/wan-2.5-preview.d.ts +6 -0
- package/dist/packs/models/fal/wan-2.5-preview.js +7 -0
- package/dist/packs/models/fal/z-image-turbo.d.ts +6 -0
- package/dist/packs/models/fal/z-image-turbo.js +7 -0
- package/dist/packs/models/grsai/gpt-image-2.d.ts +6 -0
- package/dist/packs/models/grsai/gpt-image-2.js +7 -0
- package/dist/packs/models/grsai/nano-banana-2-lite.d.ts +6 -0
- package/dist/packs/models/grsai/nano-banana-2-lite.js +7 -0
- package/dist/packs/models/grsai/nano-banana-2.d.ts +6 -0
- package/dist/packs/models/grsai/nano-banana-2.js +7 -0
- package/dist/packs/models/grsai/nano-banana-pro.d.ts +6 -0
- package/dist/packs/models/grsai/nano-banana-pro.js +7 -0
- package/dist/packs/models/kie/gemini-omni-video.d.ts +6 -0
- package/dist/packs/models/kie/gemini-omni-video.js +7 -0
- package/dist/packs/models/kie/gpt-image-2.d.ts +6 -0
- package/dist/packs/models/kie/gpt-image-2.js +7 -0
- package/dist/packs/models/kie/grok-imagine-2.0.d.ts +6 -0
- package/dist/packs/models/kie/grok-imagine-2.0.js +7 -0
- package/dist/packs/models/kie/grok-imagine-video.d.ts +6 -0
- package/dist/packs/models/kie/grok-imagine-video.js +7 -0
- package/dist/packs/models/kie/grok-imagine.d.ts +6 -0
- package/dist/packs/models/kie/grok-imagine.js +7 -0
- package/dist/packs/models/kie/hailuo-02.d.ts +6 -0
- package/dist/packs/models/kie/hailuo-02.js +7 -0
- package/dist/packs/models/kie/hailuo-2-3.d.ts +6 -0
- package/dist/packs/models/kie/hailuo-2-3.js +7 -0
- package/dist/packs/models/kie/kling-3.0-omni.d.ts +6 -0
- package/dist/packs/models/kie/kling-3.0-omni.js +7 -0
- package/dist/packs/models/kie/kling-3.0-turbo.d.ts +6 -0
- package/dist/packs/models/kie/kling-3.0-turbo.js +7 -0
- package/dist/packs/models/kie/kling-3.0.d.ts +6 -0
- package/dist/packs/models/kie/kling-3.0.js +7 -0
- package/dist/packs/models/kie/kling-v2-6.d.ts +6 -0
- package/dist/packs/models/kie/kling-v2-6.js +7 -0
- package/dist/packs/models/kie/minimax-h3.d.ts +6 -0
- package/dist/packs/models/kie/minimax-h3.js +7 -0
- package/dist/packs/models/kie/nano-banana-2-lite.d.ts +6 -0
- package/dist/packs/models/kie/nano-banana-2-lite.js +7 -0
- package/dist/packs/models/kie/nano-banana-2.d.ts +6 -0
- package/dist/packs/models/kie/nano-banana-2.js +7 -0
- package/dist/packs/models/kie/nano-banana-pro.d.ts +6 -0
- package/dist/packs/models/kie/nano-banana-pro.js +7 -0
- package/dist/packs/models/kie/qwen-image-3.0.d.ts +6 -0
- package/dist/packs/models/kie/qwen-image-3.0.js +7 -0
- package/dist/packs/models/kie/seedance-1.5-pro.d.ts +6 -0
- package/dist/packs/models/kie/seedance-1.5-pro.js +7 -0
- package/dist/packs/models/kie/seedance-2.0-fast.d.ts +6 -0
- package/dist/packs/models/kie/seedance-2.0-fast.js +7 -0
- package/dist/packs/models/kie/seedance-2.0-mini.d.ts +6 -0
- package/dist/packs/models/kie/seedance-2.0-mini.js +7 -0
- package/dist/packs/models/kie/seedance-2.0.d.ts +6 -0
- package/dist/packs/models/kie/seedance-2.0.js +7 -0
- package/dist/packs/models/kie/seedance-2.5.d.ts +6 -0
- package/dist/packs/models/kie/seedance-2.5.js +7 -0
- package/dist/packs/models/kie/seedance-v1.d.ts +6 -0
- package/dist/packs/models/kie/seedance-v1.js +7 -0
- package/dist/packs/models/kie/seedream-4.0.d.ts +6 -0
- package/dist/packs/models/kie/seedream-4.0.js +7 -0
- package/dist/packs/models/kie/seedream-4.5.d.ts +6 -0
- package/dist/packs/models/kie/seedream-4.5.js +7 -0
- package/dist/packs/models/kie/seedream-5.0-lite.d.ts +6 -0
- package/dist/packs/models/kie/seedream-5.0-lite.js +7 -0
- package/dist/packs/models/kie/seedream-5.0-pro.d.ts +6 -0
- package/dist/packs/models/kie/seedream-5.0-pro.js +7 -0
- package/dist/packs/models/kie/z-image.d.ts +6 -0
- package/dist/packs/models/kie/z-image.js +7 -0
- package/dist/packs/models/modelscope/flux-1-krea-dev.d.ts +6 -0
- package/dist/packs/models/modelscope/flux-1-krea-dev.js +7 -0
- package/dist/packs/models/modelscope/majicmix-realistic.d.ts +6 -0
- package/dist/packs/models/modelscope/majicmix-realistic.js +7 -0
- package/dist/packs/models/modelscope/modelscope-custom.d.ts +6 -0
- package/dist/packs/models/modelscope/modelscope-custom.js +7 -0
- package/dist/packs/models/modelscope/qwen-image-edit-2509.d.ts +6 -0
- package/dist/packs/models/modelscope/qwen-image-edit-2509.js +7 -0
- package/dist/packs/models/modelscope/qwen-image.d.ts +6 -0
- package/dist/packs/models/modelscope/qwen-image.js +7 -0
- package/dist/packs/models/modelscope/sdxl-14-ckpt.d.ts +6 -0
- package/dist/packs/models/modelscope/sdxl-14-ckpt.js +7 -0
- package/dist/packs/models/modelscope/z-image-turbo.d.ts +6 -0
- package/dist/packs/models/modelscope/z-image-turbo.js +7 -0
- package/dist/packs/models/ppio/kling-3.0.d.ts +6 -0
- package/dist/packs/models/ppio/kling-3.0.js +7 -0
- package/dist/packs/models/ppio/minimax-hailuo-2.3.d.ts +6 -0
- package/dist/packs/models/ppio/minimax-hailuo-2.3.js +7 -0
- package/dist/packs/models/ppio/minimax-speech.d.ts +6 -0
- package/dist/packs/models/ppio/minimax-speech.js +7 -0
- package/dist/packs/models/ppio/wan-2.5-preview.d.ts +6 -0
- package/dist/packs/models/ppio/wan-2.5-preview.js +7 -0
- package/dist/packs/models/ppio/wan-2.6.d.ts +6 -0
- package/dist/packs/models/ppio/wan-2.6.js +7 -0
- package/dist/packs/models/ppio/wan-2.7.d.ts +6 -0
- package/dist/packs/models/ppio/wan-2.7.js +7 -0
- package/dist/packs/models/volcengine/seedream-5.0-lite.d.ts +6 -0
- package/dist/packs/models/volcengine/seedream-5.0-lite.js +7 -0
- package/dist/packs/models/volcengine/seedream-5.0-pro.d.ts +6 -0
- package/dist/packs/models/volcengine/seedream-5.0-pro.js +7 -0
- package/dist/packs/provider-adapters/apimart.d.ts +3 -0
- package/dist/packs/provider-adapters/apimart.js +5 -0
- package/dist/packs/provider-adapters/bailian.d.ts +3 -0
- package/dist/packs/provider-adapters/bailian.js +5 -0
- package/dist/packs/provider-adapters/fal.d.ts +3 -0
- package/dist/packs/provider-adapters/fal.js +5 -0
- package/dist/packs/provider-adapters/grsai.d.ts +3 -0
- package/dist/packs/provider-adapters/grsai.js +5 -0
- package/dist/packs/provider-adapters/kie.d.ts +3 -0
- package/dist/packs/provider-adapters/kie.js +5 -0
- package/dist/packs/provider-adapters/modelscope.d.ts +3 -0
- package/dist/packs/provider-adapters/modelscope.js +5 -0
- package/dist/packs/provider-adapters/ppio.d.ts +3 -0
- package/dist/packs/provider-adapters/ppio.js +5 -0
- package/dist/packs/provider-adapters/volcengine.d.ts +3 -0
- package/dist/packs/provider-adapters/volcengine.js +5 -0
- package/dist/packs/provider-packs/apimart.d.ts +4 -0
- package/dist/packs/provider-packs/apimart.js +25 -0
- package/dist/packs/provider-packs/bailian.d.ts +4 -0
- package/dist/packs/provider-packs/bailian.js +7 -0
- package/dist/packs/provider-packs/fal.d.ts +4 -0
- package/dist/packs/provider-packs/fal.js +42 -0
- package/dist/packs/provider-packs/grsai.d.ts +4 -0
- package/dist/packs/provider-packs/grsai.js +9 -0
- package/dist/packs/provider-packs/kie.d.ts +4 -0
- package/dist/packs/provider-packs/kie.js +32 -0
- package/dist/packs/provider-packs/modelscope.d.ts +4 -0
- package/dist/packs/provider-packs/modelscope.js +12 -0
- package/dist/packs/provider-packs/ppio.d.ts +4 -0
- package/dist/packs/provider-packs/ppio.js +11 -0
- package/dist/packs/provider-packs/volcengine.d.ts +4 -0
- package/dist/packs/provider-packs/volcengine.js +7 -0
- package/dist/packs/tool-models/fal/bria-eraser.d.ts +5 -0
- package/dist/packs/tool-models/fal/bria-eraser.js +4 -0
- package/dist/packs/tool-models/fal/control-light.d.ts +5 -0
- package/dist/packs/tool-models/fal/control-light.js +4 -0
- package/dist/packs/tool-models/fal/finegrain-eraser.d.ts +5 -0
- package/dist/packs/tool-models/fal/finegrain-eraser.js +4 -0
- package/dist/packs/tool-models/fal/flux-2-multiple-angles.d.ts +5 -0
- package/dist/packs/tool-models/fal/flux-2-multiple-angles.js +4 -0
- package/dist/packs/tool-models/fal/flux-pro-erase.d.ts +5 -0
- package/dist/packs/tool-models/fal/flux-pro-erase.js +4 -0
- package/dist/packs/tool-models/fal/outpaint.d.ts +5 -0
- package/dist/packs/tool-models/fal/outpaint.js +4 -0
- package/dist/packs/tool-models/fal/perspective-change.d.ts +5 -0
- package/dist/packs/tool-models/fal/perspective-change.js +4 -0
- package/dist/packs/tool-models/fal/photo-restoration.d.ts +5 -0
- package/dist/packs/tool-models/fal/photo-restoration.js +4 -0
- package/dist/packs/tool-models/fal/pixelcut-background-removal.d.ts +5 -0
- package/dist/packs/tool-models/fal/pixelcut-background-removal.js +4 -0
- package/dist/packs/tool-models/fal/product-photography.d.ts +5 -0
- package/dist/packs/tool-models/fal/product-photography.js +4 -0
- package/dist/packs/tool-models/fal/qwen-image-edit-2509-multiple-angles.d.ts +5 -0
- package/dist/packs/tool-models/fal/qwen-image-edit-2509-multiple-angles.js +4 -0
- package/dist/packs/tool-models/fal/relighting.d.ts +5 -0
- package/dist/packs/tool-models/fal/relighting.js +4 -0
- package/dist/packs/tool-packs/fal-image-edit-tools.d.ts +5 -0
- package/dist/packs/tool-packs/fal-image-edit-tools.js +8 -0
- package/dist/packs/tool-packs/fal-image-utility-tools.d.ts +5 -0
- package/dist/packs/tool-packs/fal-image-utility-tools.js +18 -0
- package/dist/packs/tool-packs/fal-multi-angle-tools.d.ts +5 -0
- package/dist/packs/tool-packs/fal-multi-angle-tools.js +8 -0
- package/dist/pricing/index.d.ts +1 -0
- package/dist/pricing/index.js +1 -0
- package/dist/pricing/mediaContext.d.ts +27 -0
- package/dist/pricing/mediaContext.js +110 -0
- package/dist/protocols/index.d.ts +7 -0
- package/dist/protocols/index.js +7 -0
- package/dist/protocols/polling.d.ts +29 -0
- package/dist/protocols/polling.js +92 -0
- package/dist/protocols/request-builder-dsl.d.ts +15 -0
- package/dist/protocols/request-builder-dsl.js +64 -0
- package/dist/protocols/request-normalizer.d.ts +3 -0
- package/dist/protocols/request-normalizer.js +141 -0
- package/dist/protocols/utf8-stream-decoder.d.ts +20 -0
- package/dist/protocols/utf8-stream-decoder.js +125 -0
- package/dist/providers/apimart.d.ts +3 -0
- package/dist/providers/apimart.js +128 -0
- package/dist/providers/bailian.d.ts +3 -0
- package/dist/providers/bailian.js +50 -0
- package/dist/providers/connection.d.ts +3 -0
- package/dist/providers/connection.js +169 -0
- package/dist/providers/endpoints/apimart.d.ts +11 -0
- package/dist/providers/endpoints/apimart.js +49 -0
- package/dist/providers/endpoints/grsai.d.ts +11 -0
- package/dist/providers/endpoints/grsai.js +50 -0
- package/dist/providers/fal.d.ts +3 -0
- package/dist/providers/fal.js +148 -0
- package/dist/providers/grsai.d.ts +3 -0
- package/dist/providers/grsai.js +99 -0
- package/dist/providers/helpers.d.ts +10 -0
- package/dist/providers/helpers.js +76 -0
- package/dist/providers/index.d.ts +25 -0
- package/dist/providers/index.js +93 -0
- package/dist/providers/kie.d.ts +3 -0
- package/dist/providers/kie.js +125 -0
- package/dist/providers/metadata.d.ts +22 -0
- package/dist/providers/metadata.js +141 -0
- package/dist/providers/modelscope.d.ts +3 -0
- package/dist/providers/modelscope.js +65 -0
- package/dist/providers/ppio-media.d.ts +2 -0
- package/dist/providers/ppio-media.js +20 -0
- package/dist/providers/ppio.d.ts +3 -0
- package/dist/providers/ppio.js +98 -0
- package/dist/providers/provider-fetch.d.ts +7 -0
- package/dist/providers/provider-fetch.js +42 -0
- package/dist/providers/types.d.ts +6 -0
- package/dist/providers/types.js +1 -0
- package/dist/providers/volcengine.d.ts +3 -0
- package/dist/providers/volcengine.js +32 -0
- package/dist/runtime/AiRuntimeError.d.ts +5 -0
- package/dist/runtime/AiRuntimeError.js +11 -0
- package/dist/runtime/CredentialStore.d.ts +47 -0
- package/dist/runtime/CredentialStore.js +1 -0
- package/dist/runtime/Logger.d.ts +47 -0
- package/dist/runtime/Logger.js +11 -0
- package/dist/runtime/MediaReader.d.ts +45 -0
- package/dist/runtime/MediaReader.js +1 -0
- package/dist/runtime/RealtimeTransport.d.ts +22 -0
- package/dist/runtime/RealtimeTransport.js +1 -0
- package/dist/runtime/RuntimeContext.d.ts +26 -0
- package/dist/runtime/RuntimeContext.js +13 -0
- package/dist/runtime/Tracer.d.ts +26 -0
- package/dist/runtime/Tracer.js +7 -0
- package/dist/runtime/Transport.d.ts +43 -0
- package/dist/runtime/Transport.js +1 -0
- package/dist/runtime/error-classify.d.ts +7 -0
- package/dist/runtime/error-classify.js +192 -0
- package/dist/runtime/errors.d.ts +40 -0
- package/dist/runtime/errors.js +27 -0
- package/dist/runtime/index.d.ts +25 -0
- package/dist/runtime/index.js +15 -0
- package/dist/runtime/provider-error-core.d.ts +33 -0
- package/dist/runtime/provider-error-core.js +86 -0
- package/dist/runtime/retry.d.ts +7 -0
- package/dist/runtime/retry.js +72 -0
- package/dist/runtime/task-registry.d.ts +5 -0
- package/dist/runtime/task-registry.js +25 -0
- package/dist/structured-output/index.d.ts +1 -0
- package/dist/structured-output/index.js +1 -0
- package/dist/structured-output/seedream-layer-stack.d.ts +4 -0
- package/dist/structured-output/seedream-layer-stack.js +206 -0
- package/dist/tool-packs/fal-erase/models/bria-eraser.model.d.ts +2 -0
- package/dist/tool-packs/fal-erase/models/bria-eraser.model.js +38 -0
- package/dist/tool-packs/fal-erase/models/finegrain-eraser.model.d.ts +2 -0
- package/dist/tool-packs/fal-erase/models/finegrain-eraser.model.js +47 -0
- package/dist/tool-packs/fal-erase/models/flux-pro-erase.model.d.ts +2 -0
- package/dist/tool-packs/fal-erase/models/flux-pro-erase.model.js +42 -0
- package/dist/tool-packs/fal-image-utilities/models/control-light.model.d.ts +2 -0
- package/dist/tool-packs/fal-image-utilities/models/control-light.model.js +42 -0
- package/dist/tool-packs/fal-image-utilities/models/outpaint.model.d.ts +2 -0
- package/dist/tool-packs/fal-image-utilities/models/outpaint.model.js +74 -0
- package/dist/tool-packs/fal-image-utilities/models/photo-restoration.model.d.ts +2 -0
- package/dist/tool-packs/fal-image-utilities/models/photo-restoration.model.js +56 -0
- package/dist/tool-packs/fal-image-utilities/models/pixelcut-background-removal.model.d.ts +2 -0
- package/dist/tool-packs/fal-image-utilities/models/pixelcut-background-removal.model.js +41 -0
- package/dist/tool-packs/fal-image-utilities/models/product-photography.model.d.ts +2 -0
- package/dist/tool-packs/fal-image-utilities/models/product-photography.model.js +41 -0
- package/dist/tool-packs/fal-image-utilities/models/relighting.model.d.ts +3 -0
- package/dist/tool-packs/fal-image-utilities/models/relighting.model.js +74 -0
- package/dist/tool-packs/fal-image-utilities/shared.d.ts +9 -0
- package/dist/tool-packs/fal-image-utilities/shared.js +54 -0
- package/dist/tool-packs/fal-multi-angle/models/flux-2-multiple-angles.model.d.ts +2 -0
- package/dist/tool-packs/fal-multi-angle/models/flux-2-multiple-angles.model.js +75 -0
- package/dist/tool-packs/fal-multi-angle/models/perspective-change.model.d.ts +3 -0
- package/dist/tool-packs/fal-multi-angle/models/perspective-change.model.js +58 -0
- package/dist/tool-packs/fal-multi-angle/models/qwen-image-edit-2509-multiple-angles.model.d.ts +2 -0
- package/dist/tool-packs/fal-multi-angle/models/qwen-image-edit-2509-multiple-angles.model.js +75 -0
- package/dist/tool-packs/fal-multi-angle/shared.d.ts +2 -0
- package/dist/tool-packs/fal-multi-angle/shared.js +22 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +4 -0
- package/dist/types/model.d.ts +432 -0
- package/dist/types/model.js +21 -0
- package/dist/types/runtime.d.ts +161 -0
- package/dist/types/runtime.js +1 -0
- package/dist/upload/apimart-upload.d.ts +3 -0
- package/dist/upload/apimart-upload.js +32 -0
- package/dist/upload/base64.d.ts +5 -0
- package/dist/upload/base64.js +49 -0
- package/dist/upload/fal-legacy.d.ts +7 -0
- package/dist/upload/fal-legacy.js +19 -0
- package/dist/upload/fal-transport.d.ts +7 -0
- package/dist/upload/fal-transport.js +104 -0
- package/dist/upload/index.d.ts +10 -0
- package/dist/upload/index.js +15 -0
- package/dist/upload/kie-upload.d.ts +3 -0
- package/dist/upload/kie-upload.js +41 -0
- package/dist/upload/media-binary.d.ts +23 -0
- package/dist/upload/media-binary.js +80 -0
- package/dist/upload/media-fields.d.ts +34 -0
- package/dist/upload/media-fields.js +135 -0
- package/dist/upload/prepared-media.d.ts +5 -0
- package/dist/upload/prepared-media.js +1 -0
- package/dist/upload/preprocess-core.d.ts +40 -0
- package/dist/upload/preprocess-core.js +130 -0
- package/dist/upload/preprocess.d.ts +8 -0
- package/dist/upload/preprocess.js +24 -0
- package/dist/upload/provider-preprocessors/apimart.d.ts +4 -0
- package/dist/upload/provider-preprocessors/apimart.js +42 -0
- package/dist/upload/provider-preprocessors/data-uri.d.ts +4 -0
- package/dist/upload/provider-preprocessors/data-uri.js +6 -0
- package/dist/upload/provider-preprocessors/factory.d.ts +4 -0
- package/dist/upload/provider-preprocessors/factory.js +16 -0
- package/dist/upload/provider-preprocessors/fal.d.ts +4 -0
- package/dist/upload/provider-preprocessors/fal.js +39 -0
- package/dist/upload/provider-preprocessors/kie.d.ts +4 -0
- package/dist/upload/provider-preprocessors/kie.js +18 -0
- package/dist/upload/provider-preprocessors/ppio.d.ts +6 -0
- package/dist/upload/provider-preprocessors/ppio.js +56 -0
- package/dist/upload/providers.d.ts +5 -0
- package/dist/upload/providers.js +5 -0
- package/dist/upload/upload-response.d.ts +3 -0
- package/dist/upload/upload-response.js +24 -0
- package/docs/README.md +26 -0
- package/docs/consumers.md +48 -0
- package/docs/llm-adaptation/README.md +139 -0
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206/DeepSeek.md +91 -0
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206/Kimi.md +75 -0
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206/MiniMax.md +84 -0
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206//345/260/217/347/261/263MiMo.md +85 -0
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206//346/231/272/350/260/261GLM.md +232 -0
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206//347/201/253/345/261/261/345/274/225/346/223/216.md +87 -0
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206//347/231/276/347/202/274Qwen.md +84 -0
- package/docs/llm-adaptation//346/226/207/346/241/243/351/207/207/351/233/206/346/211/213/345/206/214.md +88 -0
- package/docs/model-adaptation/Bria-Eraser/Bria-Eraser_Fal.md +32 -0
- package/docs/model-adaptation/Bria-/345/210/233/346/204/217/346/224/276/345/244/247/Bria-/345/210/233/346/204/217/346/224/276/345/244/247_Fal.md +31 -0
- package/docs/model-adaptation/ControlLight/ControlLight_Fal.md +85 -0
- package/docs/model-adaptation/FLUX-2-/345/244/232/350/247/222/345/272/246/FLUX-2-/345/244/232/350/247/222/345/272/246_Fal.md +107 -0
- package/docs/model-adaptation/Finegrain-Eraser/Finegrain-Eraser_Fal.md +31 -0
- package/docs/model-adaptation/Flux-Pro-Erase/Flux-Pro-Erase_Fal.md +34 -0
- package/docs/model-adaptation/Fun-ASR/Fun-ASR_/347/231/276/347/202/274.md +43 -0
- package/docs/model-adaptation/Fun-ASR-Flash-2026-06-15/Fun-ASR-Flash-2026-06-15_/347/231/276/347/202/274.md +41 -0
- package/docs/model-adaptation/Fun-ASR-Realtime/Fun-ASR-Realtime_/347/231/276/347/202/274.md +37 -0
- package/docs/model-adaptation/Fun-ASR-Realtime-2026-02-28/Fun-ASR-Realtime-2026-02-28_/347/231/276/347/202/274.md +39 -0
- package/docs/model-adaptation/GLM-5.3-Flash/GLM-5.3-Flash_/346/231/272/350/260/261.md +207 -0
- package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_APIMart.md +173 -0
- package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_Fal.md +94 -0
- package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_Grsai.md +137 -0
- package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_KIE.md +93 -0
- package/docs/model-adaptation/GPT-OSS-20B/GPT-OSS-20B_Groq.md +62 -0
- package/docs/model-adaptation/Gemini-Omni-Flash/Gemini-Omni-Flash_APIMart.md +124 -0
- package/docs/model-adaptation/Gemini-Omni-Flash/Gemini-Omni-Flash_Fal.md +84 -0
- package/docs/model-adaptation/Gemini-Omni-Flash/Gemini-Omni-Flash_KIE.md +129 -0
- package/docs/model-adaptation/Grok-Imagine/Grok-Imagine_KIE.md +36 -0
- package/docs/model-adaptation/Grok-Imagine-2.0/Grok-Imagine-2.0_APIMart.md +250 -0
- package/docs/model-adaptation/Grok-Imagine-2.0/Grok-Imagine-2.0_Fal.md +84 -0
- package/docs/model-adaptation/Grok-Imagine-2.0/Grok-Imagine-2.0_KIE.md +105 -0
- package/docs/model-adaptation/Hailuo-02/Hailuo-02_Fal.md +93 -0
- package/docs/model-adaptation/Hailuo-02/Hailuo-02_KIE.md +56 -0
- package/docs/model-adaptation/Hailuo-2.3/Hailuo-2.3_Fal.md +88 -0
- package/docs/model-adaptation/Hailuo-2.3/Hailuo-2.3_KIE.md +51 -0
- package/docs/model-adaptation/Hailuo-2.3/Hailuo-2.3_/346/264/276/346/254/247/344/272/221.md +70 -0
- package/docs/model-adaptation/IC-Light-v2/IC-Light-v2_Fal.md +96 -0
- package/docs/model-adaptation/Ideogram-/345/233/276/347/211/207/346/224/276/345/244/247/Ideogram-/345/233/276/347/211/207/346/224/276/345/244/247_Fal.md +41 -0
- package/docs/model-adaptation/Image-Apps-v2-/345/225/206/345/223/201/346/221/204/345/275/261/Image-Apps-v2-/345/225/206/345/223/201/346/221/204/345/275/261_Fal.md +72 -0
- package/docs/model-adaptation/Image-Apps-v2-/346/211/251/345/233/276/Image-Apps-v2-/346/211/251/345/233/276_Fal.md +93 -0
- package/docs/model-adaptation/Image-Apps-v2-/347/205/247/347/211/207/344/277/256/345/244/215/Image-Apps-v2-/347/205/247/347/211/207/344/277/256/345/244/215_Fal.md +86 -0
- package/docs/model-adaptation/Image-Apps-v2-/351/207/215/346/211/223/345/205/211/Image-Apps-v2-/351/207/215/346/211/223/345/205/211_Fal.md +84 -0
- package/docs/model-adaptation/Kling-3.0/Kling-3.0_APIMart.md +112 -0
- package/docs/model-adaptation/Kling-3.0/Kling-3.0_Fal.md +89 -0
- package/docs/model-adaptation/Kling-3.0/Kling-3.0_KIE.md +106 -0
- package/docs/model-adaptation/Kling-3.0/Kling-3.0_/346/264/276/346/254/247/344/272/221.md +119 -0
- package/docs/model-adaptation/Kling-3.0-Omni/Kling-3.0-Omni_APIMart.md +125 -0
- package/docs/model-adaptation/Kling-3.0-Omni/Kling-3.0-Omni_Fal.md +107 -0
- package/docs/model-adaptation/Kling-3.0-Omni/Kling-3.0-Omni_KIE.md +143 -0
- package/docs/model-adaptation/Kling-3.0-Turbo/Kling-3.0-Turbo_APIMart.md +85 -0
- package/docs/model-adaptation/Kling-3.0-Turbo/Kling-3.0-Turbo_Fal.md +83 -0
- package/docs/model-adaptation/Kling-3.0-Turbo/Kling-3.0-Turbo_KIE.md +84 -0
- package/docs/model-adaptation/Midjourney/Midjourney_APIMart.md +396 -0
- package/docs/model-adaptation/MiniMax-H3/MiniMax-H3_APIMart.md +234 -0
- package/docs/model-adaptation/MiniMax-H3/MiniMax-H3_Fal.md +108 -0
- package/docs/model-adaptation/MiniMax-H3/MiniMax-H3_KIE.md +111 -0
- package/docs/model-adaptation/MiniMax-Speech/MiniMax-Speech_/346/264/276/346/254/247/344/272/221.md +170 -0
- package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_APIMart.md +89 -0
- package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_Fal.md +99 -0
- package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_Grsai.md +82 -0
- package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_KIE.md +70 -0
- package/docs/model-adaptation/Nano-Banana-2-Lite/Nano-Banana-2-Lite_APIMart.md +79 -0
- package/docs/model-adaptation/Nano-Banana-2-Lite/Nano-Banana-2-Lite_Grsai.md +65 -0
- package/docs/model-adaptation/Nano-Banana-2-Lite/Nano-Banana-2-Lite_KIE.md +64 -0
- package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_APIMart.md +83 -0
- package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_Fal.md +89 -0
- package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_Grsai.md +82 -0
- package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_KIE.md +64 -0
- package/docs/model-adaptation/Pixelcut-/350/203/214/346/231/257/347/247/273/351/231/244/Pixelcut-/350/203/214/346/231/257/347/247/273/351/231/244_Fal.md +79 -0
- package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_APIMart.md +117 -0
- package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_Fal.md +84 -0
- package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_KIE.md +103 -0
- package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_/347/231/276/347/202/274.md +138 -0
- package/docs/model-adaptation/Qwen-Image-Edit-2509-/345/244/232/350/247/222/345/272/246/Qwen-Image-Edit-2509-/345/244/232/350/247/222/345/272/246_Fal.md +116 -0
- package/docs/model-adaptation/Qwen-MT-Flash/Qwen-MT-Flash_/347/231/276/347/202/274.md +47 -0
- package/docs/model-adaptation/Qwen-MT-Lite/Qwen-MT-Lite_/347/231/276/347/202/274.md +39 -0
- package/docs/model-adaptation/Qwen-MT-Plus/Qwen-MT-Plus_/347/231/276/347/202/274.md +39 -0
- package/docs/model-adaptation/Qwen3-ASR-Flash/Qwen3-ASR-Flash_/347/231/276/347/202/274.md +40 -0
- package/docs/model-adaptation/Qwen3-ASR-Flash-2026-02-10/Qwen3-ASR-Flash-2026-02-10_/347/231/276/347/202/274.md +33 -0
- package/docs/model-adaptation/Qwen3-ASR-Flash-Filetrans/Qwen3-ASR-Flash-Filetrans_/347/231/276/347/202/274.md +41 -0
- package/docs/model-adaptation/Qwen3-ASR-Flash-Realtime/Qwen3-ASR-Flash-Realtime_/347/231/276/347/202/274.md +35 -0
- package/docs/model-adaptation/Qwen3-ASR-Flash-Realtime-2026-02-10/Qwen3-ASR-Flash-Realtime-2026-02-10_/347/231/276/347/202/274.md +37 -0
- package/docs/model-adaptation/README.md +304 -0
- package/docs/model-adaptation/SeedASR-2.0-File/SeedASR-2.0-File_/347/201/253/345/261/261/345/274/225/346/223/216.md +115 -0
- package/docs/model-adaptation/SeedASR-2.0-Realtime/SeedASR-2.0-Realtime_/347/201/253/345/261/261/345/274/225/346/223/216.md +143 -0
- package/docs/model-adaptation/SeedVR2-/345/233/276/347/211/207/346/224/276/345/244/247/SeedVR2-/345/233/276/347/211/207/346/224/276/345/244/247_Fal.md +45 -0
- package/docs/model-adaptation/Seedance-2.0/Seedance-2.0_APIMart.md +121 -0
- package/docs/model-adaptation/Seedance-2.0/Seedance-2.0_Fal.md +97 -0
- package/docs/model-adaptation/Seedance-2.0/Seedance-2.0_KIE.md +86 -0
- package/docs/model-adaptation/Seedance-2.0-Fast/Seedance-2.0-Fast_APIMart.md +89 -0
- package/docs/model-adaptation/Seedance-2.0-Fast/Seedance-2.0-Fast_Fal.md +95 -0
- package/docs/model-adaptation/Seedance-2.0-Fast/Seedance-2.0-Fast_KIE.md +78 -0
- package/docs/model-adaptation/Seedance-2.0-Mini/Seedance-2.0-Mini_APIMart.md +89 -0
- package/docs/model-adaptation/Seedance-2.0-Mini/Seedance-2.0-Mini_Fal.md +96 -0
- package/docs/model-adaptation/Seedance-2.0-Mini/Seedance-2.0-Mini_KIE.md +78 -0
- package/docs/model-adaptation/Seedance-2.5/Seedance-2.5_APIMart.md +212 -0
- package/docs/model-adaptation/Seedance-2.5/Seedance-2.5_Fal.md +94 -0
- package/docs/model-adaptation/Seedance-2.5/Seedance-2.5_KIE.md +89 -0
- package/docs/model-adaptation/Seedream-5.0-Lite/Seedream-5.0-Lite_APIMart.md +106 -0
- package/docs/model-adaptation/Seedream-5.0-Lite/Seedream-5.0-Lite_Fal.md +91 -0
- package/docs/model-adaptation/Seedream-5.0-Lite/Seedream-5.0-Lite_KIE.md +89 -0
- package/docs/model-adaptation/Seedream-5.0-Lite/Seedream-5.0-Lite_/347/201/253/345/261/261/345/274/225/346/223/216.md +108 -0
- package/docs/model-adaptation/Seedream-5.0-Pro/Seedream-5.0-Pro_APIMart.md +194 -0
- package/docs/model-adaptation/Seedream-5.0-Pro/Seedream-5.0-Pro_Fal.md +100 -0
- package/docs/model-adaptation/Seedream-5.0-Pro/Seedream-5.0-Pro_KIE.md +141 -0
- package/docs/model-adaptation/Seedream-5.0-Pro/Seedream-5.0-Pro_/347/201/253/345/261/261/345/274/225/346/223/216.md +137 -0
- package/docs/model-adaptation/SenseVoiceSmall/SenseVoiceSmall_/347/241/205/345/237/272/346/265/201/345/212/250.md +69 -0
- package/docs/model-adaptation/TeleSpeechASR/TeleSpeechASR_/347/241/205/345/237/272/346/265/201/345/212/250.md +72 -0
- package/docs/model-adaptation/Topaz-/345/233/276/347/211/207/346/224/276/345/244/247/Topaz-/345/233/276/347/211/207/346/224/276/345/244/247_Fal.md +87 -0
- package/docs/model-adaptation/Topaz-/351/200/217/346/230/216/345/233/276/346/224/276/345/244/247/Topaz-/351/200/217/346/230/216/345/233/276/346/224/276/345/244/247_Fal.md +34 -0
- package/docs/model-adaptation/Wan-2.5-Preview/Wan-2.5-Preview_/346/264/276/346/254/247/344/272/221.md +82 -0
- package/docs/model-adaptation/Wan-2.6/Wan-2.6_/346/264/276/346/254/247/344/272/221.md +84 -0
- package/docs/model-adaptation/Wan-2.7/Wan-2.7_/346/264/276/346/254/247/344/272/221.md +122 -0
- package/docs/model-adaptation/Whisper-Large-v3/Whisper-Large-v3_Groq.md +76 -0
- package/docs/model-adaptation/Whisper-Large-v3-Turbo/Whisper-Large-v3-Turbo_Groq.md +75 -0
- package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_APIMart.md +88 -0
- package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_Fal.md +95 -0
- package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_KIE.md +71 -0
- package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_/347/231/276/347/202/274.md +122 -0
- package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_/351/255/224/346/220/255.md +97 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/APIMart.md +238 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/Fal.md +172 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/Groq.md +121 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/Grsai.md +217 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/KIE.md +131 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//345/200/231/351/200/211/344/276/233/345/272/224/345/225/206/350/260/203/347/240/224-/345/233/276/347/211/207/345/267/245/345/205/267.md +151 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//345/277/253/351/200/237/351/200/202/351/205/215/344/276/233/345/272/224/345/225/206.md +65 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//346/264/276/346/254/247/344/272/221.md +138 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//347/201/253/345/261/261/345/274/225/346/223/216.md +173 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//347/231/276/347/202/274.md +227 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//347/241/205/345/237/272/346/265/201/345/212/250.md +88 -0
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//351/255/224/346/220/255.md +207 -0
- package/docs/model-adaptation//346/226/207/346/241/243/351/207/207/351/233/206/346/211/213/345/206/214.md +311 -0
- package/docs/model-adaptation//351/200/217/350/247/206/345/217/230/346/215/242//351/200/217/350/247/206/345/217/230/346/215/242_Fal.md +59 -0
- package/docs//346/216/245/345/205/245/346/214/207/345/215/227/Electron.md +77 -0
- package/docs//346/216/245/345/205/245/346/214/207/345/215/227/Tauri.md +81 -0
- package/docs//346/216/245/345/205/245/346/214/207/345/215/227/UXP.md +169 -0
- package/docs//346/216/245/345/205/245/346/214/207/345/215/227//344/276/233/345/272/224/345/225/206/345/237/237/345/220/215.md +83 -0
- package/docs//346/216/245/345/205/245/346/214/207/345/215/227//351/224/231/350/257/257/345/244/204/347/220/206.md +72 -0
- package/examples/form-renderer/README.md +17 -0
- package/examples/form-renderer/cli.ts +32 -0
- package/examples/form-renderer/index.ts +144 -0
- package/examples/form-renderer/package.json +16 -0
- package/examples/form-renderer/tsconfig.json +14 -0
- package/examples/llm-chat/README.md +32 -0
- package/examples/llm-chat/index.ts +100 -0
- package/examples/llm-chat/package.json +19 -0
- package/examples/llm-chat/tsconfig.json +14 -0
- package/examples/minimal-node/README.md +31 -0
- package/examples/minimal-node/index.ts +138 -0
- package/examples/minimal-node/package.json +17 -0
- package/examples/minimal-node/tsconfig.json +14 -0
- package/package.json +198 -0
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 模型运行时定义校验:只校验"模型是什么"——meta 标识字段、参数取值契约、端点、
|
|
3
|
+
* 价格配置的结构完整性。展示层规则(i18n key 是否存在、面板分区引用、参数命名
|
|
4
|
+
* 产品约定)留在应用侧 `src/core/validators/`,见任务 3.1 执行记录与
|
|
5
|
+
* docs/task/模型SDK抽离/重要记录.md 记录 003。
|
|
6
|
+
*
|
|
7
|
+
* 这里的规则从 `src/core/validators/modelValidator.ts` 原样搬运(同一份检查逻辑、
|
|
8
|
+
* 同样的报错文案),应用侧改为调用本模块,不再维护第二份判断,避免源码与副本
|
|
9
|
+
* 静默分叉。
|
|
10
|
+
*/
|
|
11
|
+
export class ModelRuntimeValidationError extends Error {
|
|
12
|
+
constructor(message) {
|
|
13
|
+
super(message);
|
|
14
|
+
this.name = 'ModelRuntimeValidationError';
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function defaultFail(message) {
|
|
18
|
+
throw new ModelRuntimeValidationError(message);
|
|
19
|
+
}
|
|
20
|
+
/** 校验模型运行时定义。校验失败时调用 `fail`(默认抛 `ModelRuntimeValidationError`)。 */
|
|
21
|
+
export function validateRuntimeModel(model, fail = defaultFail) {
|
|
22
|
+
validateMeta(model, fail);
|
|
23
|
+
if (model.acceptsPrompt !== undefined && typeof model.acceptsPrompt !== 'boolean') {
|
|
24
|
+
fail('Model acceptsPrompt must be a boolean');
|
|
25
|
+
}
|
|
26
|
+
validateParams(model, fail);
|
|
27
|
+
validateEndpoints(model, fail);
|
|
28
|
+
validatePricing(model, fail);
|
|
29
|
+
}
|
|
30
|
+
function validateMeta(model, fail) {
|
|
31
|
+
const { meta } = model;
|
|
32
|
+
if (!meta.id || typeof meta.id !== 'string') {
|
|
33
|
+
fail('Model meta.id is required and must be a string');
|
|
34
|
+
}
|
|
35
|
+
if (!meta.canonicalModelId || typeof meta.canonicalModelId !== 'string') {
|
|
36
|
+
fail('Model meta.canonicalModelId is required and must be a string');
|
|
37
|
+
}
|
|
38
|
+
if (!meta.provider || typeof meta.provider !== 'string') {
|
|
39
|
+
fail('Model meta.provider is required and must be a string');
|
|
40
|
+
}
|
|
41
|
+
if (typeof meta.type !== 'string' || meta.type.trim().length === 0) {
|
|
42
|
+
fail('Model meta.type is required and must be a non-empty string');
|
|
43
|
+
}
|
|
44
|
+
if (meta.aliases) {
|
|
45
|
+
if (!Array.isArray(meta.aliases)) {
|
|
46
|
+
fail('Model meta.aliases must be an array');
|
|
47
|
+
}
|
|
48
|
+
meta.aliases.forEach((alias, index) => {
|
|
49
|
+
if (typeof alias !== 'string') {
|
|
50
|
+
fail(`Model meta.aliases[${index}] must be a string`);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
if (meta.tags) {
|
|
55
|
+
if (!Array.isArray(meta.tags)) {
|
|
56
|
+
fail('Model meta.tags must be an array');
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (meta.polling) {
|
|
60
|
+
if (typeof meta.polling.interval !== 'number' || meta.polling.interval <= 0) {
|
|
61
|
+
fail('Model meta.polling.interval must be a positive number');
|
|
62
|
+
}
|
|
63
|
+
if (typeof meta.polling.maxAttempts !== 'number' || meta.polling.maxAttempts <= 0) {
|
|
64
|
+
fail('Model meta.polling.maxAttempts must be a positive number');
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (meta.progress) {
|
|
68
|
+
const progress = meta.progress;
|
|
69
|
+
if (progress.mode !== 'time' && progress.mode !== 'polling') {
|
|
70
|
+
fail('Model meta.progress.mode must be time or polling');
|
|
71
|
+
}
|
|
72
|
+
if (progress.mode === 'time') {
|
|
73
|
+
if (typeof progress.baseDurationMs !== 'number' || progress.baseDurationMs <= 0) {
|
|
74
|
+
fail('Model meta.progress.baseDurationMs must be a positive number');
|
|
75
|
+
}
|
|
76
|
+
if (progress.perUnitMs !== undefined && (typeof progress.perUnitMs !== 'number' || progress.perUnitMs < 0)) {
|
|
77
|
+
fail('Model meta.progress.perUnitMs must be a non-negative number');
|
|
78
|
+
}
|
|
79
|
+
if (progress.tickMs !== undefined && (typeof progress.tickMs !== 'number' || progress.tickMs <= 0)) {
|
|
80
|
+
fail('Model meta.progress.tickMs must be a positive number');
|
|
81
|
+
}
|
|
82
|
+
if (progress.scaleWith !== undefined && typeof progress.scaleWith !== 'string') {
|
|
83
|
+
fail('Model meta.progress.scaleWith must be a string');
|
|
84
|
+
}
|
|
85
|
+
if (progress.minDurationMs !== undefined && (typeof progress.minDurationMs !== 'number' || progress.minDurationMs <= 0)) {
|
|
86
|
+
fail('Model meta.progress.minDurationMs must be a positive number');
|
|
87
|
+
}
|
|
88
|
+
if (progress.maxDurationMs !== undefined && (typeof progress.maxDurationMs !== 'number' || progress.maxDurationMs <= 0)) {
|
|
89
|
+
fail('Model meta.progress.maxDurationMs must be a positive number');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (progress.mode === 'polling') {
|
|
93
|
+
if (typeof progress.baseAttempts !== 'number' || progress.baseAttempts <= 0) {
|
|
94
|
+
fail('Model meta.progress.baseAttempts must be a positive number');
|
|
95
|
+
}
|
|
96
|
+
if (progress.perUnitAttempts !== undefined && (typeof progress.perUnitAttempts !== 'number' || progress.perUnitAttempts < 0)) {
|
|
97
|
+
fail('Model meta.progress.perUnitAttempts must be a non-negative number');
|
|
98
|
+
}
|
|
99
|
+
if (progress.intervalMs !== undefined && (typeof progress.intervalMs !== 'number' || progress.intervalMs <= 0)) {
|
|
100
|
+
fail('Model meta.progress.intervalMs must be a positive number');
|
|
101
|
+
}
|
|
102
|
+
if (progress.tickMs !== undefined && (typeof progress.tickMs !== 'number' || progress.tickMs <= 0)) {
|
|
103
|
+
fail('Model meta.progress.tickMs must be a positive number');
|
|
104
|
+
}
|
|
105
|
+
if (progress.scaleWith !== undefined && typeof progress.scaleWith !== 'string') {
|
|
106
|
+
fail('Model meta.progress.scaleWith must be a string');
|
|
107
|
+
}
|
|
108
|
+
if (progress.minAttempts !== undefined && (typeof progress.minAttempts !== 'number' || progress.minAttempts <= 0)) {
|
|
109
|
+
fail('Model meta.progress.minAttempts must be a positive number');
|
|
110
|
+
}
|
|
111
|
+
if (progress.maxAttempts !== undefined && (typeof progress.maxAttempts !== 'number' || progress.maxAttempts <= 0)) {
|
|
112
|
+
fail('Model meta.progress.maxAttempts must be a positive number');
|
|
113
|
+
}
|
|
114
|
+
if (progress.minDurationMs !== undefined && (typeof progress.minDurationMs !== 'number' || progress.minDurationMs <= 0)) {
|
|
115
|
+
fail('Model meta.progress.minDurationMs must be a positive number');
|
|
116
|
+
}
|
|
117
|
+
if (progress.maxDurationMs !== undefined && (typeof progress.maxDurationMs !== 'number' || progress.maxDurationMs <= 0)) {
|
|
118
|
+
fail('Model meta.progress.maxDurationMs must be a positive number');
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (progress.minDurationMs !== undefined && progress.maxDurationMs !== undefined && progress.minDurationMs > progress.maxDurationMs) {
|
|
122
|
+
fail('Model meta.progress.minDurationMs must be <= maxDurationMs');
|
|
123
|
+
}
|
|
124
|
+
const curve = progress.curve;
|
|
125
|
+
if (curve) {
|
|
126
|
+
if (curve.slowStart !== undefined && (typeof curve.slowStart !== 'number' || curve.slowStart <= 0 || curve.slowStart >= 100)) {
|
|
127
|
+
fail('Model meta.progress.curve.slowStart must be between 0 and 100');
|
|
128
|
+
}
|
|
129
|
+
if (curve.slowEnd !== undefined && (typeof curve.slowEnd !== 'number' || curve.slowEnd <= 0 || curve.slowEnd >= 100)) {
|
|
130
|
+
fail('Model meta.progress.curve.slowEnd must be between 0 and 100');
|
|
131
|
+
}
|
|
132
|
+
if (curve.cap !== undefined && (typeof curve.cap !== 'number' || curve.cap <= 0 || curve.cap >= 100)) {
|
|
133
|
+
fail('Model meta.progress.curve.cap must be between 0 and 100');
|
|
134
|
+
}
|
|
135
|
+
if (curve.tailFactor !== undefined && (typeof curve.tailFactor !== 'number' || curve.tailFactor <= 0)) {
|
|
136
|
+
fail('Model meta.progress.curve.tailFactor must be a positive number');
|
|
137
|
+
}
|
|
138
|
+
if (curve.slowStart !== undefined && curve.slowEnd !== undefined && curve.slowStart >= curve.slowEnd) {
|
|
139
|
+
fail('Model meta.progress.curve.slowStart must be < slowEnd');
|
|
140
|
+
}
|
|
141
|
+
if (curve.slowEnd !== undefined && curve.cap !== undefined && curve.slowEnd >= curve.cap) {
|
|
142
|
+
fail('Model meta.progress.curve.slowEnd must be < cap');
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
if (meta.progressLearning) {
|
|
147
|
+
const { segments, enableTimeBuckets } = meta.progressLearning;
|
|
148
|
+
if (enableTimeBuckets !== undefined && typeof enableTimeBuckets !== 'boolean') {
|
|
149
|
+
fail('Model meta.progressLearning.enableTimeBuckets must be a boolean');
|
|
150
|
+
}
|
|
151
|
+
if (segments !== undefined) {
|
|
152
|
+
if (!Array.isArray(segments)) {
|
|
153
|
+
fail('Model meta.progressLearning.segments must be an array');
|
|
154
|
+
}
|
|
155
|
+
segments.forEach((segment, index) => {
|
|
156
|
+
if (!segment || typeof segment !== 'object') {
|
|
157
|
+
fail(`Model meta.progressLearning.segments[${index}] must be an object`);
|
|
158
|
+
}
|
|
159
|
+
if (segment.kind === 'field') {
|
|
160
|
+
if (typeof segment.field !== 'string' || segment.field.trim().length === 0) {
|
|
161
|
+
fail(`Model meta.progressLearning.segments[${index}].field must be a non-empty string`);
|
|
162
|
+
}
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
if (segment.kind === 'textLength') {
|
|
166
|
+
if (segment.field !== 'prompt' && segment.field !== 'text') {
|
|
167
|
+
fail(`Model meta.progressLearning.segments[${index}].field must be prompt or text`);
|
|
168
|
+
}
|
|
169
|
+
if (!Array.isArray(segment.buckets) || segment.buckets.length === 0) {
|
|
170
|
+
fail(`Model meta.progressLearning.segments[${index}].buckets must be a non-empty array`);
|
|
171
|
+
}
|
|
172
|
+
segment.buckets.forEach((bucket, bucketIndex) => {
|
|
173
|
+
if (typeof bucket !== 'number' || !Number.isFinite(bucket) || bucket <= 0) {
|
|
174
|
+
fail(`Model meta.progressLearning.segments[${index}].buckets[${bucketIndex}] must be a positive number`);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
fail(`Model meta.progressLearning.segments[${index}].kind must be field or textLength`);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const VALID_PARAM_TYPES = [
|
|
185
|
+
'text',
|
|
186
|
+
'textarea',
|
|
187
|
+
'number',
|
|
188
|
+
'dropdown',
|
|
189
|
+
'switch',
|
|
190
|
+
'radio',
|
|
191
|
+
'composite',
|
|
192
|
+
'image-upload',
|
|
193
|
+
'video-upload',
|
|
194
|
+
'file-upload',
|
|
195
|
+
'resolution',
|
|
196
|
+
'aspect-ratio',
|
|
197
|
+
];
|
|
198
|
+
function validateParams(model, fail) {
|
|
199
|
+
const { params } = model;
|
|
200
|
+
if (!Array.isArray(params)) {
|
|
201
|
+
fail('Model params must be an array');
|
|
202
|
+
}
|
|
203
|
+
const paramIds = new Set();
|
|
204
|
+
params.forEach((param, index) => {
|
|
205
|
+
validateParam(param, index, fail);
|
|
206
|
+
if (paramIds.has(param.id)) {
|
|
207
|
+
fail(`Duplicate param ID: ${param.id}`);
|
|
208
|
+
}
|
|
209
|
+
paramIds.add(param.id);
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function validateParam(param, index, fail) {
|
|
213
|
+
const prefix = `Model params[${index}]`;
|
|
214
|
+
if (!param.id || typeof param.id !== 'string') {
|
|
215
|
+
fail(`${prefix}.id is required and must be a string`);
|
|
216
|
+
}
|
|
217
|
+
if (!param.type) {
|
|
218
|
+
fail(`${prefix}.type is required`);
|
|
219
|
+
}
|
|
220
|
+
if (!VALID_PARAM_TYPES.includes(param.type)) {
|
|
221
|
+
fail(`${prefix}.type must be one of: ${VALID_PARAM_TYPES.join(', ')}`);
|
|
222
|
+
}
|
|
223
|
+
if (typeof param.order !== 'number') {
|
|
224
|
+
fail(`${prefix}.order must be a number`);
|
|
225
|
+
}
|
|
226
|
+
if (param.default === undefined) {
|
|
227
|
+
fail(`${prefix}.default is required`);
|
|
228
|
+
}
|
|
229
|
+
if (param.type === 'dropdown' || param.type === 'radio') {
|
|
230
|
+
if (!('options' in param) || !Array.isArray(param.options)) {
|
|
231
|
+
fail(`${prefix}.options is required for ${param.type}`);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
if (param.type === 'number') {
|
|
235
|
+
if (!('min' in param) || typeof param.min !== 'number') {
|
|
236
|
+
fail(`${prefix}.min is required for ${param.type}`);
|
|
237
|
+
}
|
|
238
|
+
if (!('max' in param) || typeof param.max !== 'number') {
|
|
239
|
+
fail(`${prefix}.max is required for ${param.type}`);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function validateEndpoints(model, fail) {
|
|
244
|
+
const { endpoints } = model;
|
|
245
|
+
if (!endpoints) {
|
|
246
|
+
fail('Model endpoints is required');
|
|
247
|
+
}
|
|
248
|
+
if (typeof endpoints === 'string') {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
if (typeof endpoints === 'object') {
|
|
252
|
+
const hasDefault = 'default' in endpoints && typeof endpoints.default === 'string';
|
|
253
|
+
const hasRules = 'rules' in endpoints && Array.isArray(endpoints.rules);
|
|
254
|
+
const hasSelector = 'selector' in endpoints && typeof endpoints.selector === 'function';
|
|
255
|
+
if (!hasDefault && !hasRules && !hasSelector) {
|
|
256
|
+
fail('Model endpoints must have at least one of: default, rules, selector');
|
|
257
|
+
}
|
|
258
|
+
if (hasRules) {
|
|
259
|
+
endpoints.rules.forEach((rule, index) => {
|
|
260
|
+
if (!rule.endpoint || typeof rule.endpoint !== 'string') {
|
|
261
|
+
fail(`Model endpoints.rules[${index}].endpoint is required`);
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
fail('Model endpoints must be a string or EndpointConfig object');
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
function validatePricing(model, fail) {
|
|
271
|
+
const { pricing } = model;
|
|
272
|
+
if (!pricing) {
|
|
273
|
+
fail('Model pricing is required');
|
|
274
|
+
}
|
|
275
|
+
if (!pricing.currency || typeof pricing.currency !== 'string') {
|
|
276
|
+
fail('Model pricing.currency is required and must be a string');
|
|
277
|
+
}
|
|
278
|
+
const hasFixed = typeof pricing.fixed === 'number';
|
|
279
|
+
const hasCalculator = typeof pricing.calculator === 'function';
|
|
280
|
+
if (!hasFixed && !hasCalculator) {
|
|
281
|
+
fail('Model pricing must have either fixed or calculator');
|
|
282
|
+
}
|
|
283
|
+
if (hasFixed && pricing.fixed < 0) {
|
|
284
|
+
fail('Model pricing.fixed must be non-negative');
|
|
285
|
+
}
|
|
286
|
+
if (pricing.estimateMode !== undefined
|
|
287
|
+
&& pricing.estimateMode !== 'total'
|
|
288
|
+
&& pricing.estimateMode !== 'unit') {
|
|
289
|
+
fail('Model pricing.estimateMode must be total or unit');
|
|
290
|
+
}
|
|
291
|
+
if (pricing.estimateMode === 'unit') {
|
|
292
|
+
if (typeof pricing.estimateUnit !== 'string' || pricing.estimateUnit.trim().length === 0) {
|
|
293
|
+
fail('Model pricing.estimateUnit must be a non-empty string for unit estimates');
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
else if (pricing.estimateUnit !== undefined) {
|
|
297
|
+
fail('Model pricing.estimateUnit requires estimateMode unit');
|
|
298
|
+
}
|
|
299
|
+
if (pricing.mediaContext === undefined)
|
|
300
|
+
return;
|
|
301
|
+
if (!Array.isArray(pricing.mediaContext) || pricing.mediaContext.length === 0) {
|
|
302
|
+
fail('Model pricing.mediaContext must be a non-empty array');
|
|
303
|
+
}
|
|
304
|
+
if (!hasCalculator) {
|
|
305
|
+
fail('Model pricing.mediaContext requires pricing.calculator');
|
|
306
|
+
}
|
|
307
|
+
const targetParams = new Set();
|
|
308
|
+
pricing.mediaContext.forEach((requirement, index) => {
|
|
309
|
+
const prefix = `Model pricing.mediaContext[${index}]`;
|
|
310
|
+
if (typeof requirement.targetParam !== 'string' || requirement.targetParam.trim().length === 0) {
|
|
311
|
+
fail(`${prefix}.targetParam must be a non-empty string`);
|
|
312
|
+
}
|
|
313
|
+
if (targetParams.has(requirement.targetParam)) {
|
|
314
|
+
fail(`Duplicate pricing media context targetParam: ${requirement.targetParam}`);
|
|
315
|
+
}
|
|
316
|
+
targetParams.add(requirement.targetParam);
|
|
317
|
+
if (requirement.aggregation !== undefined
|
|
318
|
+
&& requirement.aggregation !== 'first'
|
|
319
|
+
&& requirement.aggregation !== 'sum') {
|
|
320
|
+
fail(`${prefix}.aggregation must be first or sum`);
|
|
321
|
+
}
|
|
322
|
+
const validMetric = requirement.mediaType === 'image'
|
|
323
|
+
? ['megapixels', 'width', 'height', 'fileSizeBytes'].includes(requirement.metric)
|
|
324
|
+
: requirement.mediaType === 'video'
|
|
325
|
+
? ['durationSeconds', 'megapixels', 'width', 'height'].includes(requirement.metric)
|
|
326
|
+
: false;
|
|
327
|
+
if (!validMetric) {
|
|
328
|
+
fail(`${prefix} has an unsupported mediaType/metric combination`);
|
|
329
|
+
}
|
|
330
|
+
const multiplier = requirement.multiplier;
|
|
331
|
+
if (!multiplier)
|
|
332
|
+
return;
|
|
333
|
+
const exponent = multiplier.exponent ?? 1;
|
|
334
|
+
if (!Number.isFinite(exponent) || exponent <= 0) {
|
|
335
|
+
fail(`${prefix}.multiplier.exponent must be a positive finite number`);
|
|
336
|
+
}
|
|
337
|
+
if (multiplier.kind === 'fixed') {
|
|
338
|
+
if (!Number.isFinite(multiplier.value) || multiplier.value <= 0) {
|
|
339
|
+
fail(`${prefix}.multiplier.value must be a positive finite number`);
|
|
340
|
+
}
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
if (multiplier.kind !== 'parameter') {
|
|
344
|
+
fail(`${prefix}.multiplier.kind must be fixed or parameter`);
|
|
345
|
+
}
|
|
346
|
+
if (typeof multiplier.paramId !== 'string' || multiplier.paramId.trim().length === 0) {
|
|
347
|
+
fail(`${prefix}.multiplier.paramId must be a non-empty string`);
|
|
348
|
+
}
|
|
349
|
+
if (!model.params.some((param) => param.id === multiplier.paramId)) {
|
|
350
|
+
fail(`${prefix}.multiplier.paramId references unknown param: ${multiplier.paramId}`);
|
|
351
|
+
}
|
|
352
|
+
if (!Number.isFinite(multiplier.fallback) || multiplier.fallback <= 0) {
|
|
353
|
+
fail(`${prefix}.multiplier.fallback must be a positive finite number`);
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** 火山方舟官方 Seedream 5.0 Lite 图片生成与编辑模型(运行时契约) */
|
|
2
|
+
import { defineModel } from '../defineModel.js';
|
|
3
|
+
import { countUploadedImages } from '../shared/mediaPresence.js';
|
|
4
|
+
const ASPECT_RATIOS = ['1:1', '4:3', '3:4', '16:9', '9:16', '3:2', '2:3', '21:9'];
|
|
5
|
+
export const volcengineSeedream50LiteModel = defineModel({
|
|
6
|
+
meta: {
|
|
7
|
+
id: 'volcengine-seedream-5.0-lite', canonicalModelId: 'seedream-5.0-lite', seriesId: 'seedream', seriesRank: 5,
|
|
8
|
+
provider: 'volcengine', type: 'image',
|
|
9
|
+
tags: ['text-to-image', 'image-to-image', 'supports-image-editing', 'supports-multi-image', 'max-images-14', 'multi-output', 'supports-4k', 'provider-volcengine'],
|
|
10
|
+
aliases: ['seedream-5-lite-official']
|
|
11
|
+
},
|
|
12
|
+
inputLimits: { images: { max: 14 }, videos: { max: 0 } },
|
|
13
|
+
params: [
|
|
14
|
+
{
|
|
15
|
+
id: 'volcengineSeedream50LiteAspectRatio', type: 'dropdown', order: 1,
|
|
16
|
+
default: 'smart',
|
|
17
|
+
options: [{ value: 'smart' }, ...ASPECT_RATIOS.map((ratio) => ({ value: ratio }))]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 'volcengineSeedream50LiteResolution', type: 'dropdown', order: 2,
|
|
21
|
+
default: '2K',
|
|
22
|
+
options: ['2K', '3K', '4K'].map((value) => ({ value }))
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 'volcengineSeedream50LiteCount', type: 'number', order: 3,
|
|
26
|
+
default: 1, min: 1, max: 15, step: 1
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
endpoints: '/api/v3/images/generations',
|
|
30
|
+
request: {
|
|
31
|
+
builder: (params) => {
|
|
32
|
+
const filterSources = (value) => Array.isArray(value)
|
|
33
|
+
? value.filter((item) => typeof item === 'string' && item.trim().length > 0) : [];
|
|
34
|
+
const uploaded = filterSources(params.uploadedFilePaths);
|
|
35
|
+
const images = (uploaded.length > 0 ? uploaded : filterSources(params.images)).slice(0, 14);
|
|
36
|
+
const ratios = ['1:1', '4:3', '3:4', '16:9', '9:16', '3:2', '2:3', '21:9'];
|
|
37
|
+
const raw = String(params.volcengineSeedream50LiteAspectRatio || 'smart');
|
|
38
|
+
const hint = typeof params.__firstImageRatio === 'number' && Number.isFinite(params.__firstImageRatio) && params.__firstImageRatio > 0 ? params.__firstImageRatio : 1;
|
|
39
|
+
let aspectRatio = ratios.includes(raw) ? raw : '1:1';
|
|
40
|
+
if (raw === 'smart' || raw === 'auto') {
|
|
41
|
+
let difference = Number.POSITIVE_INFINITY;
|
|
42
|
+
for (const candidate of ratios) {
|
|
43
|
+
const pair = candidate.split(':').map(Number);
|
|
44
|
+
const next = Math.abs(pair[0] / pair[1] - hint);
|
|
45
|
+
if (next < difference) {
|
|
46
|
+
difference = next;
|
|
47
|
+
aspectRatio = candidate;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const resolution = String(params.volcengineSeedream50LiteResolution || '2K');
|
|
52
|
+
const sizes = {
|
|
53
|
+
'2K': { '1:1': '2048x2048', '4:3': '2304x1728', '3:4': '1728x2304', '16:9': '2848x1600', '9:16': '1600x2848', '3:2': '2496x1664', '2:3': '1664x2496', '21:9': '3136x1344' },
|
|
54
|
+
'3K': { '1:1': '3072x3072', '4:3': '3456x2592', '3:4': '2592x3456', '16:9': '4096x2304', '9:16': '2304x4096', '3:2': '3744x2496', '2:3': '2496x3744', '21:9': '4704x2016' },
|
|
55
|
+
'4K': { '1:1': '4096x4096', '4:3': '4704x3520', '3:4': '3520x4704', '16:9': '5504x3040', '9:16': '3040x5504', '3:2': '4992x3328', '2:3': '3328x4992', '21:9': '6240x2656' }
|
|
56
|
+
};
|
|
57
|
+
const requestedCount = Math.min(15, Math.max(1, Math.round(Number(params.volcengineSeedream50LiteCount || 1))));
|
|
58
|
+
const count = Math.max(1, Math.min(requestedCount, 15 - images.length));
|
|
59
|
+
const body = {
|
|
60
|
+
model: 'doubao-seedream-5-0-260128',
|
|
61
|
+
prompt: typeof params.prompt === 'string' ? params.prompt : '',
|
|
62
|
+
size: sizes[resolution]?.[aspectRatio] || sizes['2K']['1:1'],
|
|
63
|
+
sequential_image_generation: count > 1 ? 'auto' : 'disabled',
|
|
64
|
+
stream: false, response_format: 'url', watermark: false
|
|
65
|
+
};
|
|
66
|
+
if (count > 1)
|
|
67
|
+
body.sequential_image_generation_options = { max_images: count };
|
|
68
|
+
if (images.length > 0)
|
|
69
|
+
body.image = images;
|
|
70
|
+
return body;
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
pricing: {
|
|
74
|
+
currency: '¥',
|
|
75
|
+
calculator: (params) => {
|
|
76
|
+
const images = countUploadedImages(params);
|
|
77
|
+
const requested = Math.min(15, Math.max(1, Math.round(Number(params.volcengineSeedream50LiteCount || 1))));
|
|
78
|
+
return Math.max(1, Math.min(requested, 15 - Math.min(14, images))) * 0.22;
|
|
79
|
+
},
|
|
80
|
+
description: '当前官方公开价 ¥0.22/张;组图按实际成功张数计费'
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
export default volcengineSeedream50LiteModel;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/** 火山方舟官方 Seedream 5.0 Pro 图片生成与编辑模型(运行时契约) */
|
|
2
|
+
import { defineModel } from '../defineModel.js';
|
|
3
|
+
import { parseSeedreamLayerStack } from '../../structured-output/index.js';
|
|
4
|
+
import { countUploadedImages } from '../shared/mediaPresence.js';
|
|
5
|
+
const ASPECT_RATIOS = ['1:1', '4:3', '3:4', '16:9', '9:16', '3:2', '2:3', '21:9'];
|
|
6
|
+
export const volcengineSeedream50ProModel = defineModel({
|
|
7
|
+
meta: {
|
|
8
|
+
id: 'volcengine-seedream-5.0-pro', canonicalModelId: 'seedream-5.0-pro', seriesId: 'seedream', seriesRank: 5.1,
|
|
9
|
+
provider: 'volcengine', type: 'image',
|
|
10
|
+
tags: ['text-to-image', 'image-to-image', 'supports-image-editing', 'supports-multi-image', 'supports-layer-decomposition', 'max-images-10', 'provider-volcengine'],
|
|
11
|
+
aliases: ['seedream-5-pro-official']
|
|
12
|
+
},
|
|
13
|
+
inputLimits: {
|
|
14
|
+
images: { max: 10 },
|
|
15
|
+
videos: { max: 0 },
|
|
16
|
+
rules: [
|
|
17
|
+
{ when: 'volcengineSeedream50ProMode === "layer-decomposition"', images: { min: 1, max: 1 } }
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
requirements: [
|
|
21
|
+
{
|
|
22
|
+
id: 'volcengine-seedream-5-pro-layer-single-image',
|
|
23
|
+
when: 'volcengineSeedream50ProMode === "layer-decomposition"',
|
|
24
|
+
require: { images: { exact: 1 } },
|
|
25
|
+
message: {
|
|
26
|
+
title: '需要一张图片',
|
|
27
|
+
message: '图层拆分模式必须且只能输入 1 张图片。',
|
|
28
|
+
type: 'warning'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
params: [
|
|
33
|
+
{
|
|
34
|
+
id: 'volcengineSeedream50ProMode', type: 'dropdown', order: 1,
|
|
35
|
+
transferKey: 'layer-decomposition-mode',
|
|
36
|
+
default: 'generate',
|
|
37
|
+
options: [
|
|
38
|
+
{ value: 'generate' },
|
|
39
|
+
{ value: 'layer-decomposition' }
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 'volcengineSeedream50ProAspectRatio', type: 'dropdown', order: 2,
|
|
44
|
+
default: 'smart',
|
|
45
|
+
visible: { condition: 'volcengineSeedream50ProMode !== "layer-decomposition"' },
|
|
46
|
+
options: [{ value: 'smart' }, ...ASPECT_RATIOS.map((ratio) => ({ value: ratio }))]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 'volcengineSeedream50ProResolution', type: 'dropdown', order: 3,
|
|
50
|
+
default: '2K',
|
|
51
|
+
visible: { condition: 'volcengineSeedream50ProMode !== "layer-decomposition"' },
|
|
52
|
+
options: ['1K', '1.5K', '2K'].map((value) => ({ value }))
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 'volcengineSeedream50ProLayerSize', type: 'dropdown', order: 4,
|
|
56
|
+
transferKey: 'layer-output-size',
|
|
57
|
+
default: 'auto',
|
|
58
|
+
visible: { condition: 'volcengineSeedream50ProMode === "layer-decomposition"' },
|
|
59
|
+
options: [
|
|
60
|
+
{ value: 'auto' },
|
|
61
|
+
...['1K', '1.5K', '2K'].map((value) => ({ value }))
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: 'volcengineSeedream50ProBackground', type: 'dropdown', order: 5,
|
|
66
|
+
default: 'opaque',
|
|
67
|
+
visible: { condition: 'volcengineSeedream50ProMode !== "layer-decomposition"' },
|
|
68
|
+
options: [
|
|
69
|
+
{ value: 'opaque' },
|
|
70
|
+
{ value: 'transparent' }
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
endpoints: '/api/v3/images/generations',
|
|
75
|
+
request: {
|
|
76
|
+
builder: (params) => {
|
|
77
|
+
const filterSources = (value) => Array.isArray(value)
|
|
78
|
+
? value.filter((item) => typeof item === 'string' && item.trim().length > 0) : [];
|
|
79
|
+
const uploaded = filterSources(params.uploadedFilePaths);
|
|
80
|
+
const images = (uploaded.length > 0 ? uploaded : filterSources(params.images)).slice(0, 10);
|
|
81
|
+
if (params.volcengineSeedream50ProMode === 'layer-decomposition') {
|
|
82
|
+
if (images.length !== 1)
|
|
83
|
+
throw new Error('Seedream 5.0 Pro 图层拆分模式必须且只能输入 1 张图片');
|
|
84
|
+
const rawLayerSize = String(params.volcengineSeedream50ProLayerSize || 'auto');
|
|
85
|
+
return {
|
|
86
|
+
model: 'doubao-seedream-5-0-pro-260628',
|
|
87
|
+
prompt: typeof params.prompt === 'string' ? params.prompt : '',
|
|
88
|
+
image: images[0],
|
|
89
|
+
layer_decomposition: true,
|
|
90
|
+
size: ['auto', '1K', '1.5K', '2K'].includes(rawLayerSize) ? rawLayerSize : 'auto',
|
|
91
|
+
response_format: 'url',
|
|
92
|
+
watermark: false
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
const ratios = ['1:1', '4:3', '3:4', '16:9', '9:16', '3:2', '2:3', '21:9'];
|
|
96
|
+
const raw = String(params.volcengineSeedream50ProAspectRatio || 'smart');
|
|
97
|
+
const hint = typeof params.__firstImageRatio === 'number' && Number.isFinite(params.__firstImageRatio) && params.__firstImageRatio > 0 ? params.__firstImageRatio : 1;
|
|
98
|
+
let aspectRatio = ratios.includes(raw) ? raw : '1:1';
|
|
99
|
+
if (raw === 'smart' || raw === 'auto') {
|
|
100
|
+
let difference = Number.POSITIVE_INFINITY;
|
|
101
|
+
for (const candidate of ratios) {
|
|
102
|
+
const pair = candidate.split(':').map(Number);
|
|
103
|
+
const next = Math.abs(pair[0] / pair[1] - hint);
|
|
104
|
+
if (next < difference) {
|
|
105
|
+
difference = next;
|
|
106
|
+
aspectRatio = candidate;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
const pair = aspectRatio.split(':').map(Number);
|
|
111
|
+
const ratio = pair[0] / pair[1];
|
|
112
|
+
const resolution = String(params.volcengineSeedream50ProResolution || '2K');
|
|
113
|
+
const base = resolution === '2K' ? 2048 : (resolution === '1K' ? 1024 : 1536);
|
|
114
|
+
const width = Math.round(Math.sqrt(base * base * ratio) / 16) * 16;
|
|
115
|
+
const height = Math.round(Math.sqrt(base * base / ratio) / 16) * 16;
|
|
116
|
+
const body = {
|
|
117
|
+
model: 'doubao-seedream-5-0-pro-260628',
|
|
118
|
+
prompt: typeof params.prompt === 'string' ? params.prompt : '',
|
|
119
|
+
size: `${width}x${height}`,
|
|
120
|
+
background: params.volcengineSeedream50ProBackground === 'transparent' ? 'transparent' : 'opaque',
|
|
121
|
+
response_format: 'url', watermark: false
|
|
122
|
+
};
|
|
123
|
+
if (images.length > 0)
|
|
124
|
+
body.image = images;
|
|
125
|
+
return body;
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
response: {
|
|
129
|
+
structuredOutput: ({ metadata, params }) => params.volcengineSeedream50ProMode === 'layer-decomposition'
|
|
130
|
+
? parseSeedreamLayerStack('volcengine', metadata)
|
|
131
|
+
: undefined
|
|
132
|
+
},
|
|
133
|
+
pricing: {
|
|
134
|
+
currency: '¥',
|
|
135
|
+
calculator: (params) => {
|
|
136
|
+
if (params.volcengineSeedream50ProMode === 'layer-decomposition') {
|
|
137
|
+
// 输出层数及每层实际像素档位都由模型结果决定,提交前不能给出可靠总价。
|
|
138
|
+
return Number.NaN;
|
|
139
|
+
}
|
|
140
|
+
const output = params.volcengineSeedream50ProResolution === '1K' || params.volcengineSeedream50ProResolution === '1.5K'
|
|
141
|
+
? 0.3
|
|
142
|
+
: 0.6;
|
|
143
|
+
const inputs = countUploadedImages(params);
|
|
144
|
+
return output + Math.max(0, inputs - 1) * 0.02;
|
|
145
|
+
},
|
|
146
|
+
description: '生成/编辑:1K/1.5K ¥0.30、2K ¥0.60/张,第 2 张起输入图 +¥0.02/张;图层拆分按实际输出图层与像素档位计费,提交前总价暂不可估算(单层 1K/1.5K ¥0.15、2K/自动 ¥0.30)'
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
export default volcengineSeedream50ProModel;
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type CreateGenerationClientConfig, type GenerationClient, type GenerationClientCancelRequest, type GenerationClientCatalog, type GenerationClientCompletedInfo, type GenerationClientContinuePollingRequest, type GenerationClientHooks, type GenerationClientProviderRegistration, type GenerationClientProviders, type GenerationClientRequestInfo, type GenerationClientResult } from './generation.js';
|
|
2
|
+
import { type GenerationPack } from './generation/core.js';
|
|
3
|
+
import { type LlmChatStreamHooks, type LlmChatStreamOutcome } from './llm/chat.js';
|
|
4
|
+
import type { LlmChatRequestDto, LlmStreamEmitter } from './llm/chatTypes.js';
|
|
5
|
+
import type { ModelStepEvent, ModelStepInput, ModelStepResult } from './llm/modelStep.js';
|
|
6
|
+
export type AIClientProviderRegistration = GenerationClientProviderRegistration;
|
|
7
|
+
export interface CreateAIClientConfig extends CreateGenerationClientConfig {
|
|
8
|
+
/**
|
|
9
|
+
* 缺省不传时保持 100 模型兼容行为。显式选择 modular 后,生成目录只包含顶层
|
|
10
|
+
* `models/providers` 与这里的 packs,不再自动装入任何内置模型或供应商。
|
|
11
|
+
*/
|
|
12
|
+
generation?: {
|
|
13
|
+
mode: 'modular';
|
|
14
|
+
packs?: readonly GenerationPack[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export type AIClientGenerateResult = GenerationClientResult;
|
|
18
|
+
export type AIClientGenerationRequestInfo = GenerationClientRequestInfo;
|
|
19
|
+
export type AIClientGenerationCompletedInfo = GenerationClientCompletedInfo;
|
|
20
|
+
export type AIClientGenerationHooks = GenerationClientHooks;
|
|
21
|
+
export type AIClientContinuePollingRequest = GenerationClientContinuePollingRequest;
|
|
22
|
+
export type AIClientCancelRequest = GenerationClientCancelRequest;
|
|
23
|
+
export type AIClientCatalog = GenerationClientCatalog;
|
|
24
|
+
export type AIClientProviders = GenerationClientProviders;
|
|
25
|
+
export interface AIClientChat {
|
|
26
|
+
stream(request: LlmChatRequestDto, emit: LlmStreamEmitter, hooks?: LlmChatStreamHooks): Promise<LlmChatStreamOutcome>;
|
|
27
|
+
modelStep(input: ModelStepInput, emit: (event: ModelStepEvent) => void): Promise<ModelStepResult>;
|
|
28
|
+
}
|
|
29
|
+
export interface AIClient extends GenerationClient {
|
|
30
|
+
chat: AIClientChat;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 创建共享一个 RuntimeContext 的完整 SDK 客户端。生成能力直接组合
|
|
34
|
+
* {@link createGenerationClient} 的唯一内核;根入口只追加 LLM 能力。
|
|
35
|
+
*/
|
|
36
|
+
export declare function createAIClient(config: CreateAIClientConfig): AIClient;
|