mirror of
https://github.com/cosmicoptima/loom.git
synced 2026-07-22 07:40:25 +00:00
Add HTTP-Referer/X-Title to OpenRouter
This commit is contained in:
parent
0aee3e1cff
commit
c624fd9282
3 changed files with 4 additions and 2 deletions
2
main.ts
2
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,
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-loom",
|
||||
"version": "1.22.0",
|
||||
"version": "1.22.1",
|
||||
"description": "Loom in Obsidian",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue