1. 24 Dec, 2024 8 commits
    • fix: gemini func call · 411d3a62
      Yan committed
    • feat: Enhance pricing functionality with user group support · d429483f
      - Updated the GetPricing function in the backend to include user group information, allowing for dynamic adjustment of group ratios based on the user's group.
      - Implemented logic to filter group ratios based on the user's usable groups, improving the accuracy of pricing data returned.
      - Modified the ModelPricing component to utilize the new usable group data, ensuring only relevant groups are displayed in the UI.
      - Enhanced state management in the frontend to accommodate the new usable group information, improving user experience and data consistency.
      CalciumIon committed
    • feat: Update localization and enhance token editing functionality · 4bc8052a
      - Added new translation keys for English localization in `en.json`, including "Token group, default is the your's group" and "IP whitelist (do not overly trust this function)".
      - Refactored `EditToken.js` to utilize the `useTranslation` hook for improved internationalization, ensuring all user-facing strings are translatable.
      - Updated error and success messages to use translation functions, enhancing user experience for non-English speakers.
      - Improved UI elements to support localization, including labels, placeholders, and button texts, ensuring consistency across the token editing interface.
      CalciumIon committed
    • feat: Add FetchModels endpoint and refactor FetchUpstreamModels · b46efdc8
      - Introduced a new `FetchModels` endpoint to retrieve model IDs from a specified base URL and API key, enhancing flexibility for different channel types.
      - Refactored `FetchUpstreamModels` to simplify base URL handling and improve error messages during response parsing.
      - Updated API routes to include the new endpoint and adjusted the frontend to utilize the new fetch mechanism for model lists.
      - Removed outdated checks for channel type in the frontend, streamlining the model fetching process.
      CalciumIon committed
    • feat: Enhance LogsTable component with mobile support and date handling improvements · 1e22f405
      - Added mobile-specific date pickers for start and end timestamps in the LogsTable component, improving user experience on mobile devices.
      - Updated the input handling for date values to ensure valid date formats are maintained.
      - Introduced a new translation key for "时间范围" (Time range) in the English locale file to support localization efforts.
      CalciumIon committed
    • feat: Enhance logging functionality with group support · 7e8adb5b
      - Added a new 'group' parameter to various logging functions, including RecordConsumeLog, GetAllLogs, and GetUserLogs, to allow for more granular log tracking.
      - Updated the logs table component to display group information, improving the visibility of log data.
      - Refactored related functions to accommodate the new group parameter, ensuring consistent handling across the application.
      - Improved the initialization of the group column for PostgreSQL compatibility.
      CalciumIon committed
  2. 23 Dec, 2024 3 commits
  3. 22 Dec, 2024 13 commits
  4. 21 Dec, 2024 7 commits
  5. 20 Dec, 2024 9 commits