Title: fix: filter image_url content from API messages for DeepSeek compatibility by dengmik-commits · Pull Request #51 · lessweb/deepcode-cli · GitHub
Open Graph Title: fix: filter image_url content from API messages for DeepSeek compatibility by dengmik-commits · Pull Request #51 · lessweb/deepcode-cli
X Title: fix: filter image_url content from API messages for DeepSeek compatibility by dengmik-commits · Pull Request #51 · lessweb/deepcode-cli
Description: Summary DeepSeek API 不支持 image_url 消息内容类型,当消息中包含图片时(粘贴剪贴板图片、Read 工具读取图片文件)会报 400 错误。此修复在发送 API 请求前过滤掉 image_url 类型的内容部分,只保留文本。 Changes src/session.ts - 在构建 API 消息时跳过 type === "image_url" 的内容块 Before Request failed: 400 Failed to deserialize the JSON body into the target type: messages[58]: unknown variant image_url After 图片消息仍存储在本地会话中(UI 正常显示 📎),但不发送给 DeepSeek API。 Fixes #50
Open Graph Description: Summary DeepSeek API 不支持 image_url 消息内容类型,当消息中包含图片时(粘贴剪贴板图片、Read 工具读取图片文件)会报 400 错误。此修复在发送 API 请求前过滤掉 image_url 类型的内容部分,只保留文本。 Changes src/session.ts - 在构建 API 消息时跳过 type === "image_url"...
X Description: Summary DeepSeek API 不支持 image_url 消息内容类型,当消息中包含图片时(粘贴剪贴板图片、Read 工具读取图片文件)会报 400 错误。此修复在发送 API 请求前过滤掉 image_url 类型的内容部分,只保留文本。 Changes src/session.ts - 在构建 API 消息时跳过 type === "image_url&a...
Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/51
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:11bcdec0-c0d1-26af-c85f-8187adcb23d4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BF08:143958:B9691A:10FA482:6A4E23A7 |
| html-safe-nonce | 9ae43027f60e50451e0bf21b40c734960729425988ebbc5fde2afdeccaf359a2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjA4OjE0Mzk1ODpCOTY5MUE6MTBGQTQ4Mjo2QTRFMjNBNyIsInZpc2l0b3JfaWQiOiI2NTcwMjk3MDk4Mzg5ODI0NDIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 856d025463dcb9a9dd5730f26575cb08ebfd81f6d176a5a339bb6b1d18f9d300 |
| hovercard-subject-tag | pull_request:3674241831 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/51/files |
| twitter:image | https://avatars.githubusercontent.com/u/270912164?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/270912164?s=400&v=4 |
| og:image:alt | Summary DeepSeek API 不支持 image_url 消息内容类型,当消息中包含图片时(粘贴剪贴板图片、Read 工具读取图片文件)会报 400 错误。此修复在发送 API 请求前过滤掉 image_url 类型的内容部分,只保留文本。 Changes src/session.ts - 在构建 API 消息时跳过 type === "image_url"... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git |
| octolytics-dimension-user_id | 118287711 |
| octolytics-dimension-user_login | lessweb |
| octolytics-dimension-repository_id | 1223512305 |
| octolytics-dimension-repository_nwo | lessweb/deepcode-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1223512305 |
| octolytics-dimension-repository_network_root_nwo | lessweb/deepcode-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5fe497b4815fcce3df76c0e246faa739a82c3124 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width