@cremini/skillpack 1.2.1 → 1.2.2
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/cli.js +2 -0
- package/package.json +1 -1
- package/web/index.html +1 -1
- package/web/js/api-key-dialog.js +5 -0
package/dist/cli.js
CHANGED
|
@@ -23,6 +23,7 @@ var init_config = __esm({
|
|
|
23
23
|
authType: "api_key",
|
|
24
24
|
envKey: "OPENAI_API_KEY",
|
|
25
25
|
placeholder: "sk-proj-...",
|
|
26
|
+
baseUrlPlaceholder: "https://api.openai.com/v1",
|
|
26
27
|
supportsBaseUrl: true
|
|
27
28
|
},
|
|
28
29
|
anthropic: {
|
|
@@ -31,6 +32,7 @@ var init_config = __esm({
|
|
|
31
32
|
authType: "api_key",
|
|
32
33
|
envKey: "ANTHROPIC_API_KEY",
|
|
33
34
|
placeholder: "sk-ant-api03-...",
|
|
35
|
+
baseUrlPlaceholder: "https://api.anthropic.com",
|
|
34
36
|
supportsBaseUrl: true
|
|
35
37
|
},
|
|
36
38
|
google: {
|
package/package.json
CHANGED
package/web/index.html
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
</div>
|
|
95
95
|
<div class="form-group" id="apikey-baseurl-group">
|
|
96
96
|
<label>Custom Base URL <span class="label-hint">(optional)</span></label>
|
|
97
|
-
<input type="text" id="apikey-baseurl-input" placeholder="https://api.
|
|
97
|
+
<input type="text" id="apikey-baseurl-input" placeholder="https://api.openai.com/v1" class="form-input" />
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
|
package/web/js/api-key-dialog.js
CHANGED
|
@@ -158,6 +158,11 @@ function updateProviderUI() {
|
|
|
158
158
|
if (baseUrlGroup) {
|
|
159
159
|
baseUrlGroup.style.display = meta.supportsBaseUrl ? "" : "none";
|
|
160
160
|
}
|
|
161
|
+
|
|
162
|
+
if (baseUrlInput) {
|
|
163
|
+
baseUrlInput.placeholder =
|
|
164
|
+
meta.baseUrlPlaceholder || "https://api.openai.com/v1";
|
|
165
|
+
}
|
|
161
166
|
|
|
162
167
|
// Update placeholder
|
|
163
168
|
if (apiKeyInput) {
|