Skip to content

Conversation

@Hk-Gosuto
Copy link

@Hk-Gosuto Hk-Gosuto commented Mar 13, 2025

πŸ’» ε˜ζ›΄η±»εž‹ | Change Type

  • feat
  • fix
  • refactor
  • perf
  • style
  • test
  • docs
  • ci
  • chore
  • build

πŸ”€ ε˜ζ›΄θ―΄ζ˜Ž | Description of Change

Feat: stt optimize

πŸ“ θ‘₯充俑息 | Additional Information

Summary by CodeRabbit

  • New Features

    • Expanded conversational AI integrations now support real‑time chat, enriched voice transcription, file uploads, and advanced search capabilities.
    • New interactive plugin and artifact sharing interfaces ensure smoother, more dynamic user interactions.
  • Style

    • Enhanced UI elements including refreshed buttons, search bars, markdown rendering, and improved theme switching for greater accessibility and visual polish.
  • Documentation

    • Updated user guides and interface texts reflect the additional features and improved workflows for a more intuitive experience.

@vercel
Copy link

vercel bot commented Mar 13, 2025

@Hk-Gosuto is attempting to deploy a commit to the NextChat Team on Vercel.

A member of the Team first needs to authorize it.

@Hk-Gosuto Hk-Gosuto closed this Mar 13, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 13, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This PR introduces extensive updates across multiple areas including configuration, CI/CD workflows, API endpoints, client integrations, and UI components. It modifies files such as .dockerignore, environment templates, GitHub workflow definitions, and documentation, while adding numerous API routes and LangChain tool wrappers. The client-side integrations are enhanced to support speech, transcription, and real-time chat functions, and UI components gain new features for file uploads, voice visualization, and plugin configuration.

Changes

Files Change Summary
.dockerignore, .env.template, .gitignore, Dockerfile, README.md, README_CN.md, README_JA.md` Updated configuration files to ignore uploads, rename/add environment variables, install additional dependencies, rebrand documentation, update links, and remove localized READMEs.
.github/workflows/deploy_preview.yml, docker-nightly.yml, docker.yml, issue-translator.yml, sync.yml Adjusted workflow trigger events, updated caching action versions, modified repository synchronization, and streamlined formatting for CI/CD pipeline behaviors.
app/api/... (multiple files including [provider]/[...path]/route.ts, alibaba.ts, anthropic.ts, azure.ts, baidu.ts, bytedance.ts, auth.ts, artifacts/route.ts, file/upload/route.ts, glm.ts, google.ts, iflytek.ts, moonshot.ts, openai.ts, proxy.ts, search/route.ts, siliconflow.ts, stability.ts, tencent/route.ts, webdav/[...path]/route.ts, xai.ts) Introduced new API endpoints and updated existing ones for various model providers. Exports have been restructured; function signatures modified to export as asynchronous functions with edge/nodejs runtimes; additional authentication and timeout logic added.
app/api/langchain-tools/... (e.g., arxiv.ts, baidu_search.ts, bili_wbi_tools.ts, bilibili_music_recognition.ts, bilibili_vid_conclusion.ts, bilibili_vid_info.ts, bilibili_vid_search.ts, dalle_image_generator.ts, dalle_image_generator_node.ts, duckduckgo.ts, duckduckgo_search.ts, edge_tools.ts, google_custom_search.ts, google_search.ts, http_get.ts, langchian-tool-index.ts, myfiles_browser.ts, nodejs_tools.ts, pdf_browser.ts, stable_diffusion_image_generator.ts, stable_diffusion_image_generator_node.ts, ua_tools.ts, wolframalpha.ts) Added numerous new classes, functions, and interfaces to integrate LangChain tools, provide external service wrappers and utility functions for search, image generation, file management, and obtaining random user agents.
app/client/api.ts, app/client/platforms/... (across alibaba.ts, anthropic.ts, baidu.ts, bytedance.ts, deepseek.ts, glm.ts, google.ts, iflytek.ts, moonshot.ts, openai.ts, siliconflow.ts, tencent.ts, xai.ts), app/client/platforms/utils.ts Expanded client API integration with new abstract methods for speech, transcription, toolAgentChat and RAG store creation; refactored message processing, updated base URLs, and introduced new types and interfaces for enhanced LLM interactions.
app/command.ts Updated command prefix support by changing the prefix constant to a regular expression and added an optional fork command.
Various UI component files (app/components/artifacts.tsx, button.tsx, chat.tsx, emoji.tsx, exporter.tsx, home.tsx, input-range.tsx, markdown.tsx, mask.tsx, model-config.tsx, and plugin & realtime chat related files) Introduced new components and style updates for artifacts preview, buttons with loading state, enhanced chat with file upload and speech recognition features, improved markdown rendering, plugin configuration, and realtime chat interfaces.

Sequence Diagram(s)

Below is a high-level sequence diagram for the File Upload API endpoint:

sequenceDiagram
    participant C as Client
    participant F as FileUpload API Handler
    participant A as Auth Module
    participant S as Storage Service
    participant R as Response

    C->>F: Send POST request with file (form data)
    F->>A: Perform authentication check
    A-->>F: Auth result (success/failure)
    alt Authentication Successful
        F->>F: Extract file from form data
        F->>S: Determine storage (LocalFileStorage or S3FileStorage)
        S-->>F: Return stored file info (filename, path)
        F->>R: Assemble JSON response with file info
    else Authentication Failed
        F->>R: Return 401 Unauthorized response
    end
    R-->>C: Deliver response
Loading

Possibly related PRs

Poem

I'm a little bunny, hopping with delight,
Through code and configs, I dance in the light.
Docker and workflows, APIs all anew,
UI and plugins, a bright vibrant view.
With every little change, my heart skips a beat –
Hoppy coding adventures make my journey so sweet!

Tip

⚑πŸ§ͺ Multi-step agentic review comment chat (experimental)
  • We're introducing multi-step agentic chat in review comments. This experimental feature enhances review discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments.
    - To enable this feature, set early_access to true under in the settings.
✨ Finishing Touches
  • πŸ“ Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❀️ Share
πŸͺ§ Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Hk-Gosuto Hk-Gosuto deleted the feat/stt-optimize branch March 13, 2025 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.