From c624fd92829c4e58d7e5c017f5a7938d4f27bf18 Mon Sep 17 00:00:00 2001 From: celeste Date: Tue, 3 Sep 2024 20:10:38 -0700 Subject: [PATCH] Add HTTP-Referer/X-Title to OpenRouter --- main.ts | 2 ++ manifest.json | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index f31d5c1..28ee1f0 100644 --- a/main.ts +++ b/main.ts @@ -1586,6 +1586,8 @@ export default class LoomPlugin extends Plugin { method: "POST", headers: { Authorization: `Bearer ${getPreset(this.settings).apiKey}`, + "HTTP-Referer": "https://github.com/cosmicoptima/loom", + "X-Title": "Loomsidian", "Content-Type": "application/json", }, throw: false, diff --git a/manifest.json b/manifest.json index fcc5c0b..3d20c92 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "loom", "name": "Loom", - "version": "1.22.0", + "version": "1.22.1", "minAppVersion": "0.15.0", "description": "Loom in Obsidian", "author": "celeste", diff --git a/package.json b/package.json index bc177cd..e858e20 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-loom", - "version": "1.22.0", + "version": "1.22.1", "description": "Loom in Obsidian", "main": "main.js", "scripts": {