Draft
Conversation
Adds Venice AI (https://venice.ai) as a new OpenAI-compatible provider for private inference. Includes modern models like glm-4-32b, trinity-v1, deepseek-r1-671b, deepseek-v3-0324, qwen-2.5-coder-32b, and llama-3.3-70b. Closes #12106
2 tasks
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.
Related GitHub Issue
Closes: #12106
Description
This PR attempts to address Issue #12106 by adding Venice AI as a new provider to Roo Code. Venice AI offers an OpenAI-compatible API at
https://api.venice.ai/api/v1for private inference.Implementation details:
packages/types/src/providers/venice.ts): DefinesVeniceModelId,veniceDefaultModelId, andveniceModelswith modern models (glm-4-32b as default, trinity-v1, deepseek-r1-671b, deepseek-v3-0324, qwen-2.5-coder-32b, llama-3.3-70b) per issue feedback from @joshua-mo-143src/api/providers/venice.ts): ExtendsBaseOpenAiCompatibleProviderpointed at the Venice API endpointveniceApiKeyto schemas, secret keys, provider names, and model ID mappingswebview-ui/src/components/settings/providers/Venice.tsx): API key input with link to Venice settings pagebuildApiHandler,ProfileValidator,ApiOptions,useSelectedModel, constants, and i18n stringsFollows the same pattern as SambaNova and other OpenAI-compatible providers.
Feedback and guidance are welcome.
Test Procedure
src/api/providers/__tests__/venice.spec.ts(9 tests covering base URL, API key, default model, specified model, completePrompt, error handling, streaming text, streaming usage, and API parameters)cd src && npx vitest run api/providers/__tests__/venice.spec.tsPre-Submission Checklist
Documentation Updates
No documentation updates are required. The provider will appear automatically in the provider dropdown in settings.
Interactively review PR in Roo Code Cloud