@whisperr/wizard 0.5.2 → 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/dist/index.js +2 -1
- package/package.json +1 -1
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";
|
|
@@ -1952,7 +1953,7 @@ function resolveConfig(flags = {}) {
|
|
|
1952
1953
|
);
|
|
1953
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,
|