This commit is contained in:
Logan Yang 2025-01-15 19:01:49 -08:00 committed by GitHub
parent d3079816cd
commit 2565bfcb65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 17 additions and 11 deletions

View file

@ -20,13 +20,15 @@ If you enjoy Copilot for Obsidian, please consider [sponsoring this project](htt
<a href="https://www.buymeacoffee.com/logancyang" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 40px !important;width: 150px !important;" ></a>
SPECIAL THANKS TO OUR TOP SPONSORS:
@mikelaaron, @pedramamini, @Arlorean, @dashinja, @azagore, @MTGMAD, @gpythomas, @emaynard, @scmarinelli, @borthwick, @adamhill, @gluecode, @rusi, @timgrote, @JiaruiYu-Consilium, @ddocta, @AMOz1, @chchwy, @pborenstein, @GitTom, @kazukgw, @mjluser1, @joesfer, @rwaal, @turnoutnow-harpreet, @dreznicek, @xrise-informatik, @jeremygentles, @ZhengRui, @bfoujols, @jsmith0475, @pagiaddlemon, @sebbyyyywebbyyy, @royschwartz2, @vikram11, @amiable-dev, @khalidhalim, @DrJsPBs, @chishaku, @Andrea18500, @shayonpal, @rhm2k
@mikelaaron, @pedramamini, @Arlorean, @dashinja, @azagore, @MTGMAD, @gpythomas, @emaynard, @scmarinelli, @borthwick, @adamhill, @gluecode, @rusi, @timgrote, @JiaruiYu-Consilium, @ddocta, @AMOz1, @chchwy, @pborenstein, @GitTom, @kazukgw, @mjluser1, @joesfer, @rwaal, @turnoutnow-harpreet, @dreznicek, @xrise-informatik, @jeremygentles, @ZhengRui, @bfoujols, @jsmith0475, @pagiaddlemon, @sebbyyyywebbyyy, @royschwartz2, @vikram11, @amiable-dev, @khalidhalim, @DrJsPBs, @chishaku, @Andrea18500, @shayonpal, @rhm2k, @snorcup, @JohnBub
[Changelog](https://github.com/logancyang/obsidian-copilot/releases)
## 🤖 v2.7.13 Relevant Notes in Copilot Chat! 🚀
## 🚀 v2.8.0 Revamped Settings, Inline Edit Dialog, and Relevant Notes in Copilot Chat! 🚀
Introducing **Relevant Notes in Copilot Chat**! You can now see the collapsible **Relevant Notes** section at the top of the chat UI. It uses the same Copilot index you create for Vault QA. "Relevance" is determined by Copilot's own special algorithm based on hybrid search and Obsidian's note graph similarity, it is not just vector similarity. You can clearly see ranking factors such as the level of similarity and whether it has a direct link or backlink to the current note. You can also add any relevant note to chat with one click. The entire feature is developed by our great @zeroliu, one of our top contributors 💪. Enjoy!
As we are fast approaching the **official launch of Copilot Plus**, we've revamped the settings page to make it more user-friendly and intuitive. Please share your feedback on the new settings page! We've also implemented a brand new experience for easier inline editing of selected text using Copilot commands such as `simplify`, `translate`, `fix grammar`, etc. You can now select text and see a list of them in your right-click context menu. (Thanks to @Emt-lin and @zeroliu for the contribution!)
We've introduced **Relevant Notes in Copilot Chat** in the previous release. You can now see the collapsible **Relevant Notes** section at the top of the chat UI. It uses the same Copilot index you create for Vault QA. "Relevance" is determined by Copilot's own special algorithm based on hybrid search and Obsidian's note graph similarity, it is not just vector similarity. You can clearly see ranking factors such as the level of similarity and whether it has a direct link or backlink to the current note. You can also add any relevant note to chat with one click. The entire feature is developed by our great @zeroliu, one of our top contributors 💪. Enjoy!
<img src="./images/relevant-notes-in-copilot-chat.png" alt="Relevant Notes in Copilot Chat" width="700">

View file

@ -1,7 +1,7 @@
{
"id": "copilot",
"name": "Copilot",
"version": "2.7.15",
"version": "2.8.0",
"minAppVersion": "0.15.0",
"description": "An AI Copilot in Obsidian.",
"author": "Logan Yang",

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "obsidian-copilot",
"version": "2.7.15",
"version": "2.8.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "obsidian-copilot",
"version": "2.7.15",
"version": "2.8.0",
"license": "AGPL-3.0",
"dependencies": {
"@huggingface/inference": "^2.6.4",

View file

@ -1,6 +1,6 @@
{
"name": "obsidian-copilot",
"version": "2.7.15",
"version": "2.8.0",
"description": "ChatGPT integration for Obsidian",
"main": "main.js",
"scripts": {

View file

@ -346,6 +346,8 @@ class CopilotPlusChainRunner extends BaseChainRunner {
// Check if this is a YouTube-only message
if (this.isYoutubeOnlyMessage(userMessage.message)) {
const url = extractYoutubeUrl(userMessage.message);
const failMessage =
"Transcript not available. Only videos with the auto transcript option turned on are supported at the moment.";
if (url) {
try {
const response = await BrevilabsClient.getInstance().youtube4llm(url);
@ -360,16 +362,17 @@ class CopilotPlusChainRunner extends BaseChainRunner {
);
}
return this.handleResponse(
"Transcript not available. Only English videos with the auto transcript option turned on are supported at the moment.",
failMessage,
userMessage,
abortController,
addMessage,
updateCurrentAiMessage,
debug
);
} catch {
} catch (error) {
console.error("Error processing YouTube video:", error);
return this.handleResponse(
"An error occurred while transcribing the YouTube video. Right now only English videos with the auto transcript option turned on are supported. Please check the error message in the console for more details.",
failMessage,
userMessage,
abortController,
addMessage,

View file

@ -73,5 +73,6 @@
"2.7.12": "0.15.0",
"2.7.13": "0.15.0",
"2.7.14": "0.15.0",
"2.7.15": "0.15.0"
"2.7.15": "0.15.0",
"2.8.0": "0.15.0"
}