Skip to content

Commit

Permalink
2.8.0 (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
logancyang authored Jan 16, 2025
1 parent d307981 commit 2565bfc
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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">

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-copilot",
"version": "2.7.15",
"version": "2.8.0",
"description": "ChatGPT integration for Obsidian",
"main": "main.js",
"scripts": {
Expand Down
9 changes: 6 additions & 3 deletions src/LLMProviders/chainRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 2565bfc

Please sign in to comment.