Add HTTP-Referer/X-Title to OpenRouter

This commit is contained in:
celeste 2024-09-03 20:10:38 -07:00
parent 0aee3e1cff
commit c624fd9282
3 changed files with 4 additions and 2 deletions

View file

@ -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,

View file

@ -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",

View file

@ -1,6 +1,6 @@
{
"name": "obsidian-loom",
"version": "1.22.0",
"version": "1.22.1",
"description": "Loom in Obsidian",
"main": "main.js",
"scripts": {