Repository navigation
Add Qwen, Z.ai, and Claude Code providers with improved validation - #50
Conversation
Adds a ClaudeCodeProvider backed by ai-sdk-provider-claude-code so users can run Claude Opus/Sonnet/Haiku through their Claude Code CLI subscription without configuring an API key. - No required configuration: auth is handled by the CLI login; optional cwd and pathToClaudeCodeExecutable string settings are exposed - Registered in allProviders/createDefaultRegistry and exported for consumers that build their own registry - ai-sdk-provider-claude-code added as an optional peer dependency, pinned to <3.0.0 (3.x targets AI SDK v6 / LanguageModelV3) - Marked external in the vite build so the Node-only SDK is never bundled into the browser bundle - Bump version to 0.5.0 hbmartin/secure-design#46 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HhfPeyDkq6rxAh87EC11HR
…artin/secure-design#64 Users pointing a provider at a custom OpenAI-compatible endpoint often have keys that do not start with the vendor's usual prefix (e.g. "sk-"), and the "API key typically starts with..." nag was misleading there. - Field validators now optionally receive the full config record - apiKeyField only warns about the vendor prefix when no custom baseURL is configured - AddModelForm passes current form values into field validation so the warning also clears live in the form - Add coverage for both validateCredentials and validateField paths hbmartin/secure-design#64 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HhfPeyDkq6rxAh87EC11HR
…martin/secure-design#81 With just-in-time model loading enabled, LM Studio's /api/v0/models returns every downloaded model (loaded or not) — including entries with type 'vlm'. The response validator only accepted 'llm' and 'embeddings', so a single vision model caused the entire list to be rejected with "Unexpected LM Studio model list response payload", leaving users with no models unless they preloaded them manually. - Accept any string model type; only embeddings are filtered out of the chat model list - Skip malformed entries instead of failing the whole payload - Mark 'vlm' / 'vision'-capable models as supporting vision - Add fetchModels coverage for JIT-style responses hbmartin/secure-design#81 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HhfPeyDkq6rxAh87EC11HR
Adds two OpenAI-compatible providers requested by users: - Qwen: qwen3-max (default), qwen3-coder-plus, qwen-plus, qwen-turbo against Alibaba Cloud Model Studio (DashScope); the base URL is configurable for mainland-China accounts - Z.ai (GLM): glm-4.6 (default), glm-4.5, glm-4.5-air against the Z.ai API; base URL configurable for open.bigmodel.cn accounts - Both use the existing @ai-sdk/openai-compatible optional peer dependency, registered in allProviders and exported for custom registries; icons and README updated Provides native Qwen model access requested in hbmartin/secure-design#64 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HhfPeyDkq6rxAh87EC11HR
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 7 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (16)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Summary
This PR adds three new AI model providers (Qwen, Z.ai, and Claude Code) to the model picker, along with improvements to configuration validation and LM Studio model discovery.
Key Changes
New Providers
Configuration & Validation Improvements
validateField()method to accept an optionalrecordparameter, allowing field validators to access other form values for context-aware validationAddModelFormto pass form values to field validators for cross-field validation supportLM Studio Provider Enhancements
Icons
Testing
Documentation & Configuration
ai-sdk-provider-claude-codeto Vite's external dependencies (dynamic peer import, never bundled)Notable Implementation Details
https://claude.ai/code/session_01HhfPeyDkq6rxAh87EC11HR