feat: Add deepseek-v4-flash-vision-exp to DeepSeek provider and organize README structure - #81
Open
Haicaji wants to merge 15 commits into
Open
feat: Add deepseek-v4-flash-vision-exp to DeepSeek provider and organize README structure#81Haicaji wants to merge 15 commits into
Haicaji wants to merge 15 commits into
Conversation
Contributor
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
organize README structure to avoid multiple README files in the project root
Closes [FEATURE]: Add deepseek-v4-flash-vision-exp to DeepSeek provider #80 — Add
deepseek-v4-flash-vision-expto the DeepSeek provider to support multimodal (image) capabilities.Changes
packages/cyberstrike/src/provider/provider.tsisVisionModel()helper that recognizesdeepseek-v4-flash-vision-exp.capabilities.input.image = truefor this model in both the models.dev database path (fromModelsDevModel) and the config-override path, so image uploads work even if models.dev / a stale local cache hasn't tagged the model withimagemodality yet.packages/cyberstrike/src/provider/transform.tsdeepseek-v4reasoning-effort branch (returnshigh/max) also covers the multimodaldeepseek-v4-flash-vision-exp. No logic change needed — reasoning variants, thinking mode, andreasoning_contentinterleaving are inherited from the existing DeepSeek V4 handling.Tests
deepseek-v4-flash-vision-expto the models.dev fixture (test/tool/fixtures/models-api.json) withmodalities.input: ["text", "image"].test/provider/provider.test.ts: verifies the model loads from models.dev with image input / reasoning / interleavedreasoning_contentcapabilities andhigh/maxvariants, and that image capability is preserved even when config omitsmodalities.test/provider/transform.test.ts: verifiesvariants()returnshigh/maxreasoning_effortfor the vision model.Behavior
deepseek-v4-flash-vision-expin the DeepSeek provider now allows attaching images.@ai-sdk/openai-compatiblepath as OpenAI-compatibleimage_urlcontent blocks, which the DeepSeek API supports (base64 data URL / external URL).reasoning_effort(high/max) variants work like the rest of the DeepSeek V4 family.Type of change
Security impact
How did you verify it works?
To verify manually:
DEEPSEEK_API_KEY).deepseek-v4-flash-vision-expfrom the DeepSeek provider.image_urlcontent block and the model describes it.Checklist
bun turbo typecheckpasses