Commit 9c1b60d
OpenClaw Contributor
fix(agents): add missing DeepSeek V4 proxy models to reasoning_content replay set
When DeepSeek V4 models (deepseek-v4-flash-free, big-pickle) are accessed
through proxy providers like OpenCode Zen, the reasoning_content field is
stripped from assistant message replay, causing the API to return 500
errors because these models require reasoning_content to be echoed back.
The root cause is that `isDeepSeek` detection only checks endpoint class
(deepseek-native) which doesn't match proxy endpoints (opencode-native).
The model ID fallback set REASONING_CONTENT_REPLAY_MODEL_IDS also didn't
include these model variants.
Fix:
- Add deepseek-v4-flash-free and big-pickle to REASONING_CONTENT_REPLAY_MODEL_IDS
in both openai-transport-stream.ts and transcript-policy.ts
- Add regression tests for DeepSeek V4 Flash Free and Big Pickle via proxy
Fixes #865211 parent 6f695c1 commit 9c1b60d
4 files changed
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7680 | 7680 | | |
7681 | 7681 | | |
7682 | 7682 | | |
| 7683 | + | |
| 7684 | + | |
| 7685 | + | |
| 7686 | + | |
| 7687 | + | |
| 7688 | + | |
| 7689 | + | |
| 7690 | + | |
| 7691 | + | |
| 7692 | + | |
| 7693 | + | |
| 7694 | + | |
| 7695 | + | |
| 7696 | + | |
| 7697 | + | |
| 7698 | + | |
| 7699 | + | |
| 7700 | + | |
| 7701 | + | |
| 7702 | + | |
| 7703 | + | |
| 7704 | + | |
| 7705 | + | |
| 7706 | + | |
| 7707 | + | |
| 7708 | + | |
7683 | 7709 | | |
7684 | 7710 | | |
7685 | 7711 | | |
| |||
7901 | 7927 | | |
7902 | 7928 | | |
7903 | 7929 | | |
| 7930 | + | |
| 7931 | + | |
| 7932 | + | |
| 7933 | + | |
| 7934 | + | |
| 7935 | + | |
| 7936 | + | |
| 7937 | + | |
| 7938 | + | |
| 7939 | + | |
| 7940 | + | |
| 7941 | + | |
| 7942 | + | |
| 7943 | + | |
| 7944 | + | |
| 7945 | + | |
| 7946 | + | |
| 7947 | + | |
| 7948 | + | |
| 7949 | + | |
| 7950 | + | |
| 7951 | + | |
7904 | 7952 | | |
7905 | 7953 | | |
7906 | 7954 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3372 | 3372 | | |
3373 | 3373 | | |
3374 | 3374 | | |
| 3375 | + | |
3375 | 3376 | | |
| 3377 | + | |
3376 | 3378 | | |
3377 | 3379 | | |
3378 | 3380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
372 | 376 | | |
373 | 377 | | |
374 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
| |||
0 commit comments