René's URL Explorer Experiment


Title: DeepSeek API 不支持 image_url 消息类型导致 400 错误 · Issue #50 · lessweb/deepcode-cli · GitHub

Open Graph Title: DeepSeek API 不支持 image_url 消息类型导致 400 错误 · Issue #50 · lessweb/deepcode-cli

X Title: DeepSeek API 不支持 image_url 消息类型导致 400 错误 · Issue #50 · lessweb/deepcode-cli

Description: 问题描述 当消息中包含图片时(粘贴剪贴板图片、Read 工具读取图片文件),deepcode-cli 会将图片以 image_url 类型附加到消息 content 中。但 DeepSeek API 只接受 text 类型内容,导致报错: Request failed: 400 Failed to deserialize the JSON body into the target type: messages[58]: unknown variant image_url...

Open Graph Description: 问题描述 当消息中包含图片时(粘贴剪贴板图片、Read 工具读取图片文件),deepcode-cli 会将图片以 image_url 类型附加到消息 content 中。但 DeepSeek API 只接受 text 类型内容,导致报错: Request failed: 400 Failed to deserialize the JSON body into the target type:...

X Description: 问题描述 当消息中包含图片时(粘贴剪贴板图片、Read 工具读取图片文件),deepcode-cli 会将图片以 image_url 类型附加到消息 content 中。但 DeepSeek API 只接受 text 类型内容,导致报错: Request failed: 400 Failed to deserialize the JSON body into the target type:...

Opengraph URL: https://github.com/lessweb/deepcode-cli/issues/50

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DeepSeek API 不支持 image_url 消息类型导致 400 错误","articleBody":"## 问题描述\n\n当消息中包含图片时(粘贴剪贴板图片、Read 工具读取图片文件),deepcode-cli 会将图片以 `image_url` 类型附加到消息 content 中。但 DeepSeek API 只接受 `text` 类型内容,导致报错:\n\n```\nRequest failed: 400 Failed to deserialize the JSON body into the target type: messages[58]: unknown variant image_url\n```\n\n## 相关代码\n\n- `src/session.ts` — `buildUserMessage()` 第 1454-1460 行,将 `prompt.imageUrls` 转为 `image_url` 类型\n- `src/tools/read-handler.ts` — Read 图片处理 第 499-503 行,读取图片后附加 `image_url`\n- `src/ui/App.tsx` — `buildSyntheticUserMessage()` 第 467-472 行,剪贴板粘贴图片构建 `image_url`\n\n## 复现步骤\n\n1. 启动 deepcode-cli\n2. Ctrl+V 粘贴一张图片\n3. 发送消息\n4. 报 400 错误\n\n## 环境\n\n- deepcode-cli 版本:0.1.19\n- 模型:deepseek-v4-pro","author":{"url":"https://github.com/dengmik-commits","@type":"Person","name":"dengmik-commits"},"datePublished":"2026-05-13T06:51:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/50/deepcode-cli/issues/50"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e3ec50a2-1676-a239-64f2-88403f9ff754
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE2DC:3CB688:12F4156:1A352CD:6A4DE853
html-safe-nonceb768f0ac8e2526d8428208114d9d52f1b5518f52746ed4cd97239f7e8c0f4d5e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkRDOjNDQjY4ODoxMkY0MTU2OjFBMzUyQ0Q6NkE0REU4NTMiLCJ2aXNpdG9yX2lkIjoiOTAyNTU2MTk4NTQ3MTYwNDgyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd3447e45fe0491985b0ffe5961298ec76d0574798b378dba5b3e1fcfbb9c072f
hovercard-subject-tagissue:4435587791
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lessweb/deepcode-cli/50/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4dfffcf99c26a366cde096174251ab9add1f4bfb216aab27b30db5b9cf97ce9a/lessweb/deepcode-cli/issues/50
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4dfffcf99c26a366cde096174251ab9add1f4bfb216aab27b30db5b9cf97ce9a/lessweb/deepcode-cli/issues/50
og:image:alt问题描述 当消息中包含图片时(粘贴剪贴板图片、Read 工具读取图片文件),deepcode-cli 会将图片以 image_url 类型附加到消息 content 中。但 DeepSeek API 只接受 text 类型内容,导致报错: Request failed: 400 Failed to deserialize the JSON body into the target type:...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedengmik-commits
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git
octolytics-dimension-user_id118287711
octolytics-dimension-user_loginlessweb
octolytics-dimension-repository_id1223512305
octolytics-dimension-repository_nwolessweb/deepcode-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1223512305
octolytics-dimension-repository_network_root_nwolessweb/deepcode-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/issues/50#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fissues%2F50
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fissues%2F50
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/issues/50
Reloadhttps://github.com/lessweb/deepcode-cli/issues/50
Reloadhttps://github.com/lessweb/deepcode-cli/issues/50
Please reload this pagehttps://github.com/lessweb/deepcode-cli/issues/50
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 152 https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Star 1.7k https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Code https://github.com/lessweb/deepcode-cli
Issues 43 https://github.com/lessweb/deepcode-cli/issues
Pull requests 22 https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality 0 https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Code https://github.com/lessweb/deepcode-cli
Issues https://github.com/lessweb/deepcode-cli/issues
Pull requests https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
#51https://github.com/lessweb/deepcode-cli/pull/51
DeepSeek API 不支持 image_url 消息类型导致 400 错误https://github.com/lessweb/deepcode-cli/issues/50#top
#51https://github.com/lessweb/deepcode-cli/pull/51
https://github.com/dengmik-commits
dengmik-commitshttps://github.com/dengmik-commits
on May 13, 2026https://github.com/lessweb/deepcode-cli/issues/50#issue-4435587791
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.