-
-
Notifications
You must be signed in to change notification settings - Fork 331
feat(Chat): add deepseek support #5653
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
Reviewer's Guide by SourceryThis pull request introduces a Sequence diagram for rendering a chat message with MarkdownContentsequenceDiagram
participant Chats.razor
participant MarkdownContent
Chats.razor->>MarkdownContent: Renders MarkdownContent with message.Content
activate MarkdownContent
MarkdownContent->>MarkdownContent: OnParametersSet()
MarkdownContent->>MarkdownContent: GetMarkdown(message.Content)
MarkdownContent->>MarkdownContent: HandleUnclosedThinkTags(message.Content)
MarkdownContent->>MarkdownContent: RemoveEmbeddingsElement(message.Content)
MarkdownContent->>MarkdownContent: Markdown.ToHtml(message.Content, markdownPipeline)
MarkdownContent-->>Chats.razor: Returns HTML
deactivate MarkdownContent
Chats.razor->>Browser: Displays rendered HTML
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Thanks for your PR, @MadLongTom. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @MadLongTom - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider extracting the markdown pipeline configuration to a static field for reuse.
- The HandleUnclosedThinkTags method could be simplified by using a single Regex.Replace with a more complex pattern.
Here's what I looked at during the review
- 🟡 General issues: 3 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
src/BootstrapBlazor.Server/Components/Components/MarkdownContent.razor
Outdated
Show resolved
Hide resolved
src/BootstrapBlazor.Server/Components/Components/MarkdownContent.razor
Outdated
Show resolved
Hide resolved
src/BootstrapBlazor.Server/Components/Components/MarkdownContent.razor
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5653 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 657 657
Lines 29926 29926
Branches 4248 4248
=========================================
Hits 29926 29926 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…nt.razor Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> Signed-off-by: MadLongTom <36219016+MadLongTom@users.noreply.github.com>
Link issues
fixes #5753
Summary By Copilot
Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Adds support for Deepseek by introducing a new MarkdownContent component for rendering chat messages.
New Features: