- 29 Aug, 2025 13 commits
-
-
🤓 t0ng7u committed -
✨ - Add defaultVendorIcons mapping for major AI vendors - Update getOrCreateVendor to automatically set vendor icons - Add getDefaultVendorIcon helper function - Support LobeHub icons Color variants (e.g., Claude.Color, Gemini.Color) - Fix issue where default vendors were created without icons This ensures that when new models are encountered, their vendors will be created with appropriate colored icons for better UI display. Affected vendors include: - OpenAI, Anthropic, Google, Moonshot, 智谱, 阿里巴巴 - DeepSeek, MiniMax, 百度, 讯飞, 腾讯, Cohere - Cloudflare, 360, 零一万物, Jina, Mistral, xAI - Meta, 字节跳动, 快手, 即梦, Vidu, Microsoft/Azure
t0ng7u committed -
creamlike1024 committed
-
Merge branch 'pr/fix-kling-text2image' of github.com:feitianbubu/new-api into feitianbubu-pr/fix-kling-text2image
creamlike1024 committed -
creamlike1024 committed
-
Merge branch 'pr/kling-new-params' of github.com:feitianbubu/new-api into feitianbubu-pr/kling-new-params
creamlike1024 committed -
t0ng7u committed
-
🎨 - Replace copy button icon from semi-ui IconCopy to lucide-react Copy in PricingCardView - Add conditional tooltip functionality to SelectableButtonGroup that only shows when text overflows - Implement responsive table column behavior in PricingTableColumns with mobile-aware fixed positioning - Use DOM-based overflow detection (scrollWidth vs clientWidth) for better performance - Apply useIsMobile hook to conditionally set fixed: 'right' only on desktop devices These changes improve user experience across different screen sizes and provide more consistent iconography throughout the pricing interface.
t0ng7u committed -
feat: init default vendor
IcedTangerine committed -
⚡ This commit updates the default pagination settings across the model pricing components to improve user experience by reducing the need for frequent page navigation when browsing large model catalogs. Changes made: - Update initial pageSize state from 10 to 100 in useModelPricingData hook - Set defaultPageSize to 100 in PricingTable pagination configuration - Increase default skeletonCount from 10 to 100 in PricingCardSkeleton Files modified: - web/src/hooks/model-pricing/useModelPricingData.jsx - web/src/components/table/model-pricing/view/table/PricingTable.jsx - web/src/components/table/model-pricing/view/card/PricingCardSkeleton.jsx This change affects both card and table view modes of the model pricing page, ensuring consistent pagination behavior across different display formats.
t0ng7u committed -
📱 - Mobile (isMobile=true): render SearchActions (search, copy, filter) only; hide vendor intro card - Keep PricingFilterModal available on mobile for filtering - Desktop/Non-mobile: unchanged behavior (vendor intro remains visible) - Improves small-screen UX by reducing visual clutter and prioritizing primary actions Files: - web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx Notes: - Added `SearchActions` import and conditional rendering - No breaking changes; no styling changes required
t0ng7u committed -
🎨 This commit introduces a comprehensive responsive design system for the SelectableButtonGroup component that adapts to container width changes, particularly optimized for dynamic sidebar layouts. ## Key Features ### 1. Container Width Detection - Added `useContainerWidth` hook using ResizeObserver API - Real-time container width monitoring for responsive calculations - Automatic layout adjustments based on available space ### 2. Intelligent Column Layout Implements a 4-tier responsive system: - **≤280px**: 1 column + tags (mobile portrait) - **281-380px**: 2 columns + tags (narrow screens) - **381-460px**: 3 columns - tags (general case, prioritizes readability) - **>460px**: 3 columns + tags (wide screens, full feature display) ### 3. Dynamic Tag Visibility - Tags automatically hide in medium-width containers (381-460px) to improve text readability - Tags show in narrow and wide containers where space allows for optimal UX - Responsive threshold ensures content clarity across all viewport sizes ### 4. Adaptive Grid Spacing - Compact spacing `[4,4]` for containers ≤400px - Standard spacing `[6,6]` for larger containers - Additional `.sbg-compact` CSS class for fine-tuned styling in narrow layouts ### 5. Sidebar Integration - Perfectly compatible with dynamic sidebar width: `clamp(280px, 24vw, 520px)` - Automatically adjusts as sidebar scales with viewport changes - Maintains optimal button density and information display at all sizes ## Technical Implementation - **Hook**: `useContainerWidth.js` - ResizeObserver-based width detection - **Component**: Enhanced `SelectableButtonGroup.jsx` with responsive logic - **Styling**: Added `.sbg-compact` mode in `index.css` - **Performance**: Efficient span calculation using `Math.floor(24 / perRow)` ## Benefits - Improved UX across all screen sizes and sidebar configurations - Better text readability through intelligent tag hiding - Seamless integration with existing responsive sidebar system - Maintains component functionality while optimizing space utilization Closes: Responsive design implementation for model marketplace sidebar components
t0ng7u committed -
for example: image_tail,negative_prompt,camera_control
feitianbubu committed
-
- 28 Aug, 2025 7 commits
- 27 Aug, 2025 9 commits
-
-
creamlike1024 committed
-
creamlike1024 committed
-
creamlike1024 committed
-
CaIon committed
-
CaIon committed
-
CaIon committed
-
t0ng7u committed
-
✨ - Add `filter={selectFilter}` to enable search filtering in group Select component - Add `autoClearSearchValue={false}` to preserve search input value - Maintain consistency with existing model selector search behavior - Improve user experience by allowing quick filtering of group options Files modified: - web/src/components/playground/SettingsPanel.jsxt0ng7u committed -
🐛 - Update error-state rendering to use white text in the playground chat - Remove Typography.Text `type="danger"` and the red background for consistency with official behavior - Preserve layout and other message states (loading/success/system) unchanged - No linter issues introduced Files touched: - web/src/components/playground/MessageContent.jsx
t0ng7u committed
-
- 26 Aug, 2025 11 commits
-
-
creamlike1024 committed
-
creamlike1024 committed
-
creamlike1024 committed
-
CaIon committed
-
CaIon committed
-
fix(adaptor): missing first text delta while convert OpenAI to Claude
Calcium-Ion committed -
feat: adapt Volcengine adaptor for deepseek3.1 with thinking mode
Calcium-Ion committed -
CaIon committed
-
CaIon committed
-
CaIon committed
-
CaIon committed
-