@whisperr/wizard 0.5.1 → 0.5.3
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/README.md +1 -1
- package/dist/index.js +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ Development overrides:
|
|
|
59
59
|
- `WHISPERR_WIZARD_SERVICE_TIER`
|
|
60
60
|
- `WHISPERR_WIZARD_EXPLORER_MODEL`
|
|
61
61
|
- `WHISPERR_WIZARD_EXPLORER_EFFORT`
|
|
62
|
-
- `WHISPERR_WIZARD_DIRECT_OPENAI_KEY`
|
|
62
|
+
- `WHISPERR_WIZARD_DIRECT_OPENAI_KEY`
|
|
63
63
|
- `WHISPERR_WIZARD_LOG_DIR` to place private diagnostic logs in a specific directory outside the target repository
|
|
64
64
|
|
|
65
65
|
## Diagnostics
|
package/dist/index.js
CHANGED
|
@@ -1932,6 +1932,7 @@ function sleep(ms, signal) {
|
|
|
1932
1932
|
|
|
1933
1933
|
// src/core/config.ts
|
|
1934
1934
|
var DEFAULT_API_BASE = "https://api.whisperr.net";
|
|
1935
|
+
var DEFAULT_OPENAI_GATEWAY_BASE = "https://ca-whisperr-api-prod.graycliff-3f912aeb.swedencentral.azurecontainerapps.io/wizard/openai";
|
|
1935
1936
|
var DEFAULT_PRIMARY_MODEL = "gpt-5.6-sol";
|
|
1936
1937
|
var DEFAULT_EXPLORER_MODEL = "gpt-5.6-terra";
|
|
1937
1938
|
var DEFAULT_PRIMARY_EFFORT = "high";
|
|
@@ -1950,9 +1951,9 @@ function resolveConfig(flags = {}) {
|
|
|
1950
1951
|
const apiBaseUrl = stripTrailingSlashes(
|
|
1951
1952
|
flags.apiBaseUrl ?? process.env.WHISPERR_WIZARD_API_BASE ?? DEFAULT_API_BASE
|
|
1952
1953
|
);
|
|
1953
|
-
const directOpenAIKey = process.env.WHISPERR_WIZARD_DIRECT_OPENAI_KEY
|
|
1954
|
+
const directOpenAIKey = process.env.WHISPERR_WIZARD_DIRECT_OPENAI_KEY;
|
|
1954
1955
|
const openAIBaseUrl = stripTrailingSlashes(
|
|
1955
|
-
process.env.WHISPERR_WIZARD_OPENAI_BASE ?? (directOpenAIKey ? "https://api.openai.com/v1" : `${apiBaseUrl}/wizard/openai`)
|
|
1956
|
+
process.env.WHISPERR_WIZARD_OPENAI_BASE ?? (directOpenAIKey ? "https://api.openai.com/v1" : apiBaseUrl === DEFAULT_API_BASE ? DEFAULT_OPENAI_GATEWAY_BASE : `${apiBaseUrl}/wizard/openai`)
|
|
1956
1957
|
);
|
|
1957
1958
|
return {
|
|
1958
1959
|
apiBaseUrl,
|
|
@@ -3605,6 +3606,9 @@ async function run2(options, diagnostics, context = {}) {
|
|
|
3605
3606
|
{ once: true }
|
|
3606
3607
|
);
|
|
3607
3608
|
diagnostics?.registerSecrets(config.directOpenAIKey);
|
|
3609
|
+
diagnostics?.log("model_transport", {
|
|
3610
|
+
transport: config.directOpenAIKey ? "direct_openai" : "runtime_gateway"
|
|
3611
|
+
});
|
|
3608
3612
|
console.log(banner());
|
|
3609
3613
|
p.intro(theme.signal("Let's build and wire your Whisperr intervention model."));
|
|
3610
3614
|
const detections = await withSpinner(
|