Skip to content

Fix DeepSeek document block encoding#2

Merged
zhexuany merged 1 commit into
archebasefrom
fix/deepseek-docx-file-block
Jun 15, 2026
Merged

Fix DeepSeek document block encoding#2
zhexuany merged 1 commit into
archebasefrom
fix/deepseek-docx-file-block

Conversation

@zhexuany

Copy link
Copy Markdown

Summary

  • Skip OpenAI file/input_file content blocks when the target provider or model resolves to DeepSeek.
  • Preserve existing text extraction context for uploaded docx/documents instead of sending unsupported base64 file blocks to DeepSeek/LiteLLM.
  • Add a regression test for deepseek-v4-pro routed through the OpenAI provider.

Test Plan

  • cd packages/api && npx jest src/files/encode/document.spec.ts --runInBand
  • cd packages/api && npm run build

@zhexuany zhexuany merged commit cc3809b into archebase Jun 15, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant