Skip to content

feat(pi): add DeepSeek provider support#117

Open
zengdard wants to merge 1 commit into
vercel-labs:mainfrom
zengdard:main
Open

feat(pi): add DeepSeek provider support#117
zengdard wants to merge 1 commit into
vercel-labs:mainfrom
zengdard:main

Conversation

@zengdard

Copy link
Copy Markdown

Summary

Register DeepSeek as a runtime provider in the Pi SDK when DEEPSEEK_API_KEY is set, enabling deepseek/deepseek-* models to be used directly without the Vercel AI Gateway.

Changes

  • packages/processor/src/agents/pi-sdk.ts: In createPiSession(), detect DEEPSEEK_API_KEY and register the deepseek provider with configurable base URL (DEEPSEEK_BASE_URL, defaults to https://api.deepseek.com/v1).

Usage

export DEEPSEEK_API_KEY=sk-xxx
deepsec scan . --model deepseek/deepseek-v4-flash

Context

DeepSeek models use the OpenAI-compatible API format, so api: "openai-completions" is used. The provider registration follows the same pattern as the existing Anthropic and OpenAI handling.

Closes #—

@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

@zengdard is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Comment thread packages/processor/src/agents/pi-sdk.ts Outdated
Register DeepSeek as a runtime provider when DEEPSEEK_API_KEY is set,
enabling deepseek/deepseek-* models to be used directly without the
Vercel AI Gateway.

- Detect DEEPSEEK_API_KEY env var at Pi session creation
- Register deepseek provider with configurable base URL
- Support deepseek/deepseek-v4-flash and similar model references
@zengdard

Copy link
Copy Markdown
Author

Hi can you accept it ? or review it ?

BR,

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