Skip to content

Integrate with deepseek v4pro addresses issue #90#91

Merged
mattzh72 merged 4 commits into
mattzh72:mainfrom
wuweilabs:integrate-with-deepseek-v4pro
Jun 1, 2026
Merged

Integrate with deepseek v4pro addresses issue #90#91
mattzh72 merged 4 commits into
mattzh72:mainfrom
wuweilabs:integrate-with-deepseek-v4pro

Conversation

@zshanhui
Copy link
Copy Markdown
Contributor

@zshanhui zshanhui commented May 31, 2026

Description

#90
Adds support for Deepseek V4 Pro

The core of the implementation is in agent/providers/deepseek.py, most of the other files are wiring and generated prompts thats not too different from the existing providers.

Screenshot 2026-05-31 at 12 27 31 AM Screenshot 2026-05-31 at 12 28 27 AM Screenshot 2026-05-31 at 1 09 15 AM Screenshot 2026-05-31 at 1 09 23 AM Screenshot 2026-05-31 at 12 18 45 AM
  • Affected Area: [e.g. agent, storage, sdk, viewer, data]
  • adds provider and flag --provider deepseek, does not effect other paths.

Commands Run

List the exact commands you ran locally to verify this change (e.g., just test-all, uv run articraft generate, etc.)

  • uv run articraft --provider deepseek generate "Create a realistic articulated desk lamp with a weighted base, two hinged arms, and an adjustable lamp head."

Checklist

  • I have read the CONTRIBUTING guide.
  • I have run local formatters and linters (just format, just lint, npm run lint).
  • Tests pass (just smoke-tests or just test-all).
  • I have added screenshots (if there are viewer or API behavior changes).
  • Related documentation has been updated.

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.

is this a generated file that needs to be commited?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

oh hmmm good question! most likely not.

Comment thread agent/cost.py
Comment on lines +75 to +80
DEEPSEEK_V4_PRO_PRICING: dict[str, float] = {
"input_uncached": 0.435,
"input_cached": 0.003625,
"output": 0.87,
}

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.

https://api-docs.deepseek.com/quick_start/pricing
(3) The deepseek-v4-pro model API pricing will be officially adjusted to 1/4 of the original price after the 75% discount promotion ends on 2026/05/31 15:59 UTC.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

ack

Comment thread cli/main.py
def _model_and_provider(args: argparse.Namespace) -> tuple[str, str]:
model_id = str(args.model or default_model_from_env())
provider = str(args.provider or _infer_provider(model_id))
def _model_and_provider(args: argparse.Namespace) -> tuple[str | None, str]:
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.

this was added to fix an existing issue when --provider is present, but no --model provided, it would resolve to gpt-5.5-2026-04-23 not the providers default model.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

got it thank you!

@zshanhui zshanhui marked this pull request as ready for review May 31, 2026 06:18
@mattzh72 mattzh72 merged commit a49adac into mattzh72:main Jun 1, 2026
4 checks passed
@mattzh72
Copy link
Copy Markdown
Owner

mattzh72 commented Jun 1, 2026

Thank you for the contribution!

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