Skip to content

feat(wafer.ai): add DeepSeek V4 Pro#1642

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
Sewer56:add-wafer-deepseek-v4-pro
Apr 29, 2026
Merged

feat(wafer.ai): add DeepSeek V4 Pro#1642
rekram1-node merged 1 commit into
anomalyco:devfrom
Sewer56:add-wafer-deepseek-v4-pro

Conversation

@Sewer56
Copy link
Copy Markdown
Contributor

@Sewer56 Sewer56 commented Apr 29, 2026

Add DeepSeek V4 Pro to Wafer

Summary

Adds DeepSeek-V4-Pro model definition to the wafer.ai provider.

Details

  • File: providers/wafer.ai/models/DeepSeek-V4-Pro.toml
  • Family: deepseek-thinking
  • Context: 1,000,000 tokens
  • Max output: 384,000 tokens
  • Reasoning: yes (thinking mode with interleaved reasoning_content)

@Sewer56 Sewer56 force-pushed the add-wafer-deepseek-v4-pro branch from d981359 to 0894c7b Compare April 29, 2026 19:38
@Sewer56
Copy link
Copy Markdown
Contributor Author

Sewer56 commented Apr 29, 2026

CC @rekram1-node

I'm not seeing the max reasoning option here on v1.14.29 of OpenCode.

// transform.ts:576
if (model.api.id.includes("deepseek-v4")) {
  efforts.push("max")
}

It seems the check inside OpenCode is case sensitive. Would you be able to get a quick fix through in there?

@Sewer56 Sewer56 marked this pull request as ready for review April 29, 2026 19:47
@Sewer56 Sewer56 marked this pull request as draft April 29, 2026 19:50
@Sewer56 Sewer56 marked this pull request as ready for review April 29, 2026 20:04
@rekram1-node
Copy link
Copy Markdown
Collaborator

@Sewer56 yeah I can do a .toLower

@@ -0,0 +1,28 @@
name = "DeepSeek V4 Pro"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the "extends" format to reduce duplicating so much of the definition (it's a newer concept we introduced)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sure, will get it sorted when back at desk.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rekram1-node All sorted 👌

@Sewer56
Copy link
Copy Markdown
Contributor Author

Sewer56 commented Apr 29, 2026

Thanks, that'd work 👌

@rekram1-node
Copy link
Copy Markdown
Collaborator

anomalyco/opencode#25012

@Sewer56 Sewer56 force-pushed the add-wafer-deepseek-v4-pro branch from 0894c7b to 293cc3e Compare April 29, 2026 22:12
@rekram1-node rekram1-node merged commit e8b5a27 into anomalyco:dev Apr 29, 2026
1 check 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.

2 participants