feat(pi): add DeepSeek provider support#117
Open
zengdard wants to merge 1 commit into
Open
Conversation
|
@zengdard is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
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
Author
|
Hi can you accept it ? or review it ? BR, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Register DeepSeek as a runtime provider in the Pi SDK when
DEEPSEEK_API_KEYis set, enablingdeepseek/deepseek-*models to be used directly without the Vercel AI Gateway.Changes
packages/processor/src/agents/pi-sdk.ts: IncreatePiSession(), detectDEEPSEEK_API_KEYand register the deepseek provider with configurable base URL (DEEPSEEK_BASE_URL, defaults tohttps://api.deepseek.com/v1).Usage
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 #—