Skip to content

Commit

Permalink
Remove template warning notice (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
logancyang authored Nov 13, 2024
1 parent 88d33a2 commit 9608ead
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ My goal is to make it the **ultimate AI assistant** that truly **understands** y

It has a **local** index that powers the question-answering. Your notes are always stored on your own device and nowhere else! More features are under construction. Stay tuned!

<img src="./images/ui.png" alt="UI">
<img src="./images/ui.jpg" alt="UI">

If you enjoy Copilot for Obsidian, please consider [sponsoring this project](https://github.com/sponsors/logancyang), or donate by clicking the button below. It will help me keep this project going to build toward a privacy-focused AI experience. Thank you!

Expand Down
Binary file added images/ui.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/ui.png
Binary file not shown.
6 changes: 2 additions & 4 deletions src/components/ChatComponents/ChatSingleMessage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChatButtons } from "@/components/ChatComponents/ChatButtons";
import { USER_SENDER } from "@/constants";
import { ChatMessage } from "@/sharedState";
import { BotMessageSquare, User } from "lucide-react";
import { Bot, User } from "lucide-react";
import { App, Component, MarkdownRenderer } from "obsidian";
import React, { useEffect, useRef, useState } from "react";

Expand Down Expand Up @@ -121,9 +121,7 @@ const ChatSingleMessage: React.FC<ChatSingleMessageProps> = ({
return (
<div className="chat-message-container">
<div className={`message ${message.sender === USER_SENDER ? "user-message" : "bot-message"}`}>
<div className="message-icon">
{message.sender === USER_SENDER ? <User /> : <BotMessageSquare />}
</div>
<div className="message-icon">{message.sender === USER_SENDER ? <User /> : <Bot />}</div>
<div className="message-content-wrapper">
<div className="message-content">
{message.sender === USER_SENDER && isEditing ? (
Expand Down
2 changes: 1 addition & 1 deletion src/customPromptProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class CustomPromptProcessor {
.join("\n\n");
variablesWithContent.push(markdownContent);
} else {
new Notice(`Warning: No valid notes found for the provided path '${variableName}'.`);
console.warn(`No notes found for variable: ${variableName}`);
}
}

Expand Down

0 comments on commit 9608ead

Please sign in to comment.