-
Notifications
You must be signed in to change notification settings - Fork 237
feat: Add Custom Parameter Configuration (v2.5.3) #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@web-flow is attempting to deploy a commit to the buxuku's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Thank you very much for your support of this feature. I wonder if it would be convenient for you to further complete the support for multiple languages? |
It's a pretty straightforward feature, and not much description on UI, |
Noted, I'll fix and enhance it soon. |
|
✅ Key Deliverables:
Custom Parameter works as expected
Doubao-Thinking-Enabled.log (Translation service with thinking enabled):
- Lines 20-22: Shows "Custom parameters loaded for provider: openai_1752462191911" with "Body parameters: 1"
- Lines 27-47: Shows full provider config INCLUDING customParameters object with "thinking": "enabled"
- Translation times:
- Batch 1: Started at 15:45:25, response at 15:46:36 (71 seconds)
- Batch 2: Started at 15:46:36, response at 15:47:29 (53 seconds)
- Total: ~124 seconds for 100 subtitles**
Doubao-Thinking-Disabled.log (Translation service with thinking disabled):
- Lines 20-22: Shows "Custom parameters loaded for provider: openai_1752462191911" with "Body parameters: 1"
- Lines 27-47: Shows full provider config INCLUDING customParameters object with "thinking": "disabled"
- Translation times:
- Batch 1: Started at 15:50:56, response at 15:51:19 (23 seconds)
- Batch 2: Started at 15:51:19, response at 15:51:38 (19 seconds)
- Total: ~42 seconds for 100 subtitles |
|
There is a conflict in the current branch. Please rebase the main branch and submit again. Thank you very much. |
- Fix Boolean validation to show 'Valid' status for both true/false when user interacts - Remove Object type completely from parameter system to eliminate JSON validation issues - Add touched state tracking for proper validation timing across all parameter types - Simplify parameter type options to: String, Integer, Float, Boolean, Array - Clean up JSON Object Editor logic and related validation code This resolves critical UX issues where Boolean false values appeared invalid and eliminates problematic JSON Object validation that was blocking user input. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add systeminformation dependency for system info features - Update .gitignore to exclude .specs/ directory - Lock file updates from dependency changes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Implements comprehensive internationalization for custom parameter components following existing Chinese/English locale strategy. Changes: - Add translation files for parameter namespace (en/zh) - Update CustomParameterEditor with useTranslation hook - Update DynamicParameterInput with localized validation messages - Add parameters namespace to settings and translateControl pages - Add missing ParameterTemplate interface to fix build Features: - All UI text (buttons, tabs, validation, placeholders) now localized - Graceful fallback to English for missing translations - Maintains existing parameter functionality and validation - Follows established next-i18next patterns 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Addresses two UI localization issues:
1. Add provider name support to dialog title
- Add optional providerName prop to CustomParameterEditor
- Update title to show "自定义参数配置 - {providerName}" instead of internal ID
- Fallback to standard title when providerName not provided
2. Fix English text in Chinese UI
- Replace hardcoded "Initial value for new parameter" with translation key
- Add tooltips.initialValue to both en/zh translation files
- Chinese: "新参数的初始值", English: "Initial value for new parameter"
This ensures the custom parameter interface displays properly localized
content in both Chinese and English without any remaining English text
in Chinese UI.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
…arameterEditor
- Fix provider name display by passing providerName={values.name} to CustomParameterEditor
- Replace hardcoded English description with t('customParametersTip') for proper i18n
- Dialog now shows friendly provider name instead of internal ID
- Description displays in Chinese when using Chinese UI
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Remove redundant subtitle text "为此提供商配置自定义头部和请求体参数" - Cleaner UI with only title showing provider name - Eliminates duplicate information display 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This reverts commit 933fad5.
- Replace providerId with values.name in ProviderForm dialog title - Remove duplicate title section from CustomParameterEditor component - Remove unused providerName prop and parameter - Dialog now shows: "自定义参数配置 - 火山引擎-Doubao" instead of internal ID - Clean single title display eliminates UI duplication 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Remove Object type from supported parameter types list - Update Array description to be more accurate - Add comprehensive internationalization support section - Document Chinese/English UI support - Add language adaptation information to migration notes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
48a1380 to
5dd8ea0
Compare
Hi! I've rebased the branch onto the latest main. The conflicts should now be resolved. Thanks! |


✅ What's in the PR:
- 60 files changed, 17,881 insertions, 372 deletions
- Complete feature implementation with UI components, backend logic, and tests
- Changelog/v2.5.3-release-brief.md
- Comprehensive feature documentation and user guide
🎯 Feature Overview
Custom Parameter Configuration System, allowing users to configure AI model parameters directly in the UI without code
modification.
TODO
✨ Key Features
📋 Changes Include
🧪 Testing
📖 Documentation
Changelog/v2.5.3-release-brief.md