mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
V2.7.0 (#731)
This commit is contained in:
parent
b8a392b837
commit
7c01191d0c
8 changed files with 33 additions and 33 deletions
|
|
@ -28,6 +28,10 @@ SPECIAL THANKS TO OUR TOP SPONSORS:
|
|||
|
||||
In the new release v2.7.0, we will migrate off of PouchDB to Orama. This will require you to re-index your vault. With the new Orama db, you can find your index file at `.obsidian/copilot-index-<hash>.json`.
|
||||
|
||||
## 🤖 v2.7.0 Copilot Plus (alpha) demo video - AI Agent for Obsidian! 🚀
|
||||
|
||||
<a href="https://youtu.be/WxcBEXkQoSE?si=Y5HnJgt-Ii_ZxLDl" target="_blank"><img src="./images/thumbnail-copilot-plus.png" width="700" /></a>
|
||||
|
||||
## 🛠️ Features
|
||||
|
||||
- Engage with numerous LLMs seamlessly within Obsidian via the Copilot Chat window.
|
||||
|
|
|
|||
BIN
images/thumbnail-copilot-plus.png
Normal file
BIN
images/thumbnail-copilot-plus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 528 KiB |
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "copilot",
|
||||
"name": "Copilot",
|
||||
"version": "2.6.11",
|
||||
"version": "2.7.0",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "A ChatGPT Copilot in Obsidian.",
|
||||
"author": "Logan Yang",
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "obsidian-copilot",
|
||||
"version": "2.6.11",
|
||||
"version": "2.7.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "obsidian-copilot",
|
||||
"version": "2.6.11",
|
||||
"version": "2.7.0",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-copilot",
|
||||
"version": "2.6.11",
|
||||
"version": "2.7.0",
|
||||
"description": "ChatGPT integration for Obsidian",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { CustomModel, SetChainOptions } from "@/aiParams";
|
||||
import { CopilotPlusModal } from "@/components/CopilotPlusModal";
|
||||
import { SimilarNotesModal } from "@/components/SimilarNotesModal";
|
||||
import { AI_SENDER, VAULT_VECTOR_STORE_STRATEGY } from "@/constants";
|
||||
import { CustomError } from "@/error";
|
||||
import { CopilotSettings } from "@/settings/SettingsPage";
|
||||
|
|
@ -10,12 +9,7 @@ import { Notice, Vault } from "obsidian";
|
|||
import React, { useEffect, useState } from "react";
|
||||
|
||||
import { ChainType } from "@/chainFactory";
|
||||
import {
|
||||
ConnectionIcon,
|
||||
RefreshIcon,
|
||||
SaveAsNoteIcon,
|
||||
UseActiveNoteAsContextIcon,
|
||||
} from "@/components/Icons";
|
||||
import { RefreshIcon, SaveAsNoteIcon, UseActiveNoteAsContextIcon } from "@/components/Icons";
|
||||
import { stringToChainType } from "@/utils";
|
||||
|
||||
interface ChatIconsProps {
|
||||
|
|
@ -113,17 +107,17 @@ const ChatIcons: React.FC<ChatIconsProps> = ({
|
|||
setSelectedChain(settings.defaultChainType);
|
||||
}, [settings.defaultChainType]);
|
||||
|
||||
const handleFindSimilarNotes = async () => {
|
||||
const activeFile = app.workspace.getActiveFile();
|
||||
if (!activeFile) {
|
||||
new Notice("No active file");
|
||||
return;
|
||||
}
|
||||
// const handleFindSimilarNotes = async () => {
|
||||
// const activeFile = app.workspace.getActiveFile();
|
||||
// if (!activeFile) {
|
||||
// new Notice("No active file");
|
||||
// return;
|
||||
// }
|
||||
|
||||
const activeNoteContent = await app.vault.cachedRead(activeFile);
|
||||
const similarChunks = await onFindSimilarNotes(activeNoteContent, activeFile.path);
|
||||
new SimilarNotesModal(app, similarChunks).open();
|
||||
};
|
||||
// const activeNoteContent = await app.vault.cachedRead(activeFile);
|
||||
// const similarChunks = await onFindSimilarNotes(activeNoteContent, activeFile.path);
|
||||
// new SimilarNotesModal(app, similarChunks).open();
|
||||
// };
|
||||
|
||||
return (
|
||||
<div className="chat-icons-container">
|
||||
|
|
@ -183,10 +177,10 @@ const ChatIcons: React.FC<ChatIconsProps> = ({
|
|||
for Vault
|
||||
</span>
|
||||
</button>
|
||||
<button className="chat-icon-button clickable-icon" onClick={handleFindSimilarNotes}>
|
||||
{/* <button className="chat-icon-button clickable-icon" onClick={handleFindSimilarNotes}>
|
||||
<ConnectionIcon className="icon-scaler" />
|
||||
<span className="tooltip-text">Find Similar Notes for Active Note</span>
|
||||
</button>
|
||||
</button> */}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -27,23 +27,24 @@ export class CopilotPlusModal extends Modal {
|
|||
const paragraph = container.createEl("p");
|
||||
paragraph.appendChild(
|
||||
document.createTextNode(
|
||||
"Join our waitlist at the website below to be notified when Copilot Plus is available! We'll "
|
||||
"Join our waitlist at the website below to be notified when Copilot Plus is available! "
|
||||
)
|
||||
);
|
||||
|
||||
paragraph.appendChild(document.createElement("br"));
|
||||
paragraph.appendChild(document.createElement("br"));
|
||||
|
||||
paragraph.createEl("strong", {
|
||||
text: "Alpha access spots are limited. ",
|
||||
});
|
||||
paragraph.appendChild(document.createTextNode("We'll "));
|
||||
paragraph.createEl("strong", {
|
||||
text: "prioritize supporters who have donated",
|
||||
});
|
||||
paragraph.appendChild(
|
||||
document.createTextNode(" to the project through either GitHub Sponsors or buymeacoffee. ")
|
||||
);
|
||||
|
||||
paragraph.appendChild(document.createElement("br"));
|
||||
paragraph.appendChild(document.createElement("br"));
|
||||
|
||||
paragraph.createEl("strong", {
|
||||
text: "Alpha access spots are limited, ",
|
||||
});
|
||||
paragraph.appendChild(document.createTextNode("so please consider "));
|
||||
paragraph.appendChild(document.createTextNode(" so please consider "));
|
||||
const donateLink = paragraph.createEl("a", {
|
||||
href: "https://www.buymeacoffee.com/logancyang",
|
||||
text: "donating now",
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@
|
|||
"2.6.8": "0.15.0",
|
||||
"2.6.9": "0.15.0",
|
||||
"2.6.10": "0.15.0",
|
||||
"2.6.11": "0.15.0"
|
||||
"2.6.11": "0.15.0",
|
||||
"2.7.0": "0.15.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue