@releasekit/notes 0.3.0-next.0 → 0.3.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-X4LY5WGG.js → chunk-LKJLUB7X.js} +1 -2
- package/dist/cli.cjs +1 -2
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -289,7 +289,7 @@ var OllamaProvider = class extends BaseLLMProvider {
|
|
|
289
289
|
"Content-Type": "application/json"
|
|
290
290
|
};
|
|
291
291
|
if (this.apiKey) {
|
|
292
|
-
headers
|
|
292
|
+
headers.Authorization = `Bearer ${this.apiKey}`;
|
|
293
293
|
}
|
|
294
294
|
const baseUrl = this.baseURL.endsWith("/api") ? this.baseURL.slice(0, -4) : this.baseURL;
|
|
295
295
|
const response = await fetch(`${baseUrl}/api/chat`, {
|
|
@@ -450,7 +450,6 @@ function validateScope(scope, allowedScopes, rules) {
|
|
|
450
450
|
return scope;
|
|
451
451
|
case "fallback":
|
|
452
452
|
return rules?.fallbackScope;
|
|
453
|
-
case "remove":
|
|
454
453
|
default:
|
|
455
454
|
return void 0;
|
|
456
455
|
}
|
package/dist/cli.cjs
CHANGED
|
@@ -551,7 +551,7 @@ var OllamaProvider = class extends BaseLLMProvider {
|
|
|
551
551
|
"Content-Type": "application/json"
|
|
552
552
|
};
|
|
553
553
|
if (this.apiKey) {
|
|
554
|
-
headers
|
|
554
|
+
headers.Authorization = `Bearer ${this.apiKey}`;
|
|
555
555
|
}
|
|
556
556
|
const baseUrl = this.baseURL.endsWith("/api") ? this.baseURL.slice(0, -4) : this.baseURL;
|
|
557
557
|
const response = await fetch(`${baseUrl}/api/chat`, {
|
|
@@ -712,7 +712,6 @@ function validateScope(scope, allowedScopes, rules) {
|
|
|
712
712
|
return scope;
|
|
713
713
|
case "fallback":
|
|
714
714
|
return rules?.fallbackScope;
|
|
715
|
-
case "remove":
|
|
716
715
|
default:
|
|
717
716
|
return void 0;
|
|
718
717
|
}
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -598,7 +598,7 @@ var OllamaProvider = class extends BaseLLMProvider {
|
|
|
598
598
|
"Content-Type": "application/json"
|
|
599
599
|
};
|
|
600
600
|
if (this.apiKey) {
|
|
601
|
-
headers
|
|
601
|
+
headers.Authorization = `Bearer ${this.apiKey}`;
|
|
602
602
|
}
|
|
603
603
|
const baseUrl = this.baseURL.endsWith("/api") ? this.baseURL.slice(0, -4) : this.baseURL;
|
|
604
604
|
const response = await fetch(`${baseUrl}/api/chat`, {
|
|
@@ -759,7 +759,6 @@ function validateScope(scope, allowedScopes, rules) {
|
|
|
759
759
|
return scope;
|
|
760
760
|
case "fallback":
|
|
761
761
|
return rules?.fallbackScope;
|
|
762
|
-
case "remove":
|
|
763
762
|
default:
|
|
764
763
|
return void 0;
|
|
765
764
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED