Skip to content

feat(provider): add v4 request settings defaults - #1365

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-10225-v4-request-settings
Oct 9, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-10225-v4-request-settings

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Adds the DeepSeek V4 agentic model-card sampling defaults (temperature 1.0, top_p 0.95) applied V4-only and absent-field-only.
  • Injects stream_options: { include_usage: true } so vendor usage accounting can read usage on stream chunks.
  • Sets chat_template_kwargs.thinking for V4 wire efforts (none off, any wire effort on), merging into rather than replacing provider-supplied kwargs.
  • Ensures provider-supplied sampling values always win over the defaults.

Verification

  • bun run check passes on this branch (8446 pass / 1 pre-existing environmental fail, matching the approved combined-tree baseline for the unrelated shell-guard cwd test).
  • src/provider/deepseek-v4-effort.test.ts, src/provider/openai-compatible-adapter.test.ts pass (67 pass / 0 fail).

Fixes CL-10225

@linear-code

linear-code Bot commented Oct 9, 2026

Copy link
Copy Markdown

CL-10225

@TheGreatAxios
TheGreatAxios force-pushed the cl-10225-v4-request-settings branch from ae424d1 to 2d60b7f Compare October 9, 2026 04:37
@TheGreatAxios
TheGreatAxios merged commit 19bc9e1 into main Oct 9, 2026
13 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