@genesislcap/ai-assistant 15.107.0 → 15.108.0
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/chat-driver.cjs +36 -3
- package/dist/chat-driver.cjs.map +2 -2
- package/dist/chat-driver.mjs +36 -3
- package/dist/chat-driver.mjs.map +2 -2
- package/dist/custom-elements.json +8 -0
- package/dist/dts/chat-driver-node.d.ts +1 -1
- package/dist/dts/chat-driver-node.d.ts.map +1 -1
- package/dist/dts/genesis/config.d.ts.map +1 -1
- package/dist/esm/genesis/config.js +1 -1
- package/dist/esm/genesis/consumes.js +1 -1
- package/dist/genesis-consumes.cjs +1 -1
- package/dist/genesis-consumes.cjs.map +2 -2
- package/dist/genesis-consumes.mjs +1 -1
- package/dist/genesis-consumes.mjs.map +2 -2
- package/docs/genesis.md +2 -2
- package/package.json +17 -17
- package/scripts/smoke-genesis-consumes-node.mjs +1 -1
package/dist/chat-driver.cjs
CHANGED
|
@@ -4921,7 +4921,7 @@ var MutableAIProviderRegistry = class _MutableAIProviderRegistry {
|
|
|
4921
4921
|
|
|
4922
4922
|
// ../../foundation-ai/dist/esm/tiers/ai-tiers.js
|
|
4923
4923
|
var AI_TIER_IDS = ["low", "high", "reasoning"];
|
|
4924
|
-
var AI_TIER_VENDORS = ["anthropic", "gemini"];
|
|
4924
|
+
var AI_TIER_VENDORS = ["anthropic", "gemini", "openai"];
|
|
4925
4925
|
var AI_STALL_TIMEOUT_MS = 6e4;
|
|
4926
4926
|
var AI_NO_RESPONSE_TIMEOUT_MS = 3e5;
|
|
4927
4927
|
var DEFAULT_AI_TIERS = Object.freeze({
|
|
@@ -4977,14 +4977,47 @@ var DEFAULT_AI_TIERS = Object.freeze({
|
|
|
4977
4977
|
stallTimeoutMs: AI_STALL_TIMEOUT_MS,
|
|
4978
4978
|
timeoutMs: AI_NO_RESPONSE_TIMEOUT_MS
|
|
4979
4979
|
})
|
|
4980
|
+
}),
|
|
4981
|
+
// NOT BENCHED. Proposed defaults picked by price and capability tier alone, so that a
|
|
4982
|
+
// generated app can name `vendor: 'openai'` at all; they have not been through the ui-builder
|
|
4983
|
+
// bench the Anthropic and Gemini rows came out of. Run that bench before treating these as a
|
|
4984
|
+
// platform decision, and move any row it disagrees with.
|
|
4985
|
+
//
|
|
4986
|
+
// No `maxTokens` on any row: `max_output_tokens` is optional on the Responses API and the
|
|
4987
|
+
// transport omits it when unset, so the model's own ceiling applies and a whole-file write is
|
|
4988
|
+
// not truncated the way Anthropic's 4096 default would truncate it.
|
|
4989
|
+
openai: Object.freeze({
|
|
4990
|
+
// The cheapest GPT-6 tier ($0.10 / $0.50), and one of the two that accepts reasoning
|
|
4991
|
+
// effort `none`, so a caller that turns thinking off gets no reasoning at all.
|
|
4992
|
+
low: Object.freeze({
|
|
4993
|
+
model: "gpt-6-luna",
|
|
4994
|
+
stallTimeoutMs: AI_STALL_TIMEOUT_MS,
|
|
4995
|
+
timeoutMs: AI_NO_RESPONSE_TIMEOUT_MS
|
|
4996
|
+
}),
|
|
4997
|
+
// $1 / $5, and it also accepts effort `none`, so tool loops that turn thinking off are not
|
|
4998
|
+
// forced to pay for it.
|
|
4999
|
+
high: Object.freeze({
|
|
5000
|
+
model: "gpt-6.1-terra",
|
|
5001
|
+
stallTimeoutMs: AI_STALL_TIMEOUT_MS,
|
|
5002
|
+
timeoutMs: AI_NO_RESPONSE_TIMEOUT_MS
|
|
5003
|
+
}),
|
|
5004
|
+
// $2 / $10 rather than gpt-6-astra's $10 / $50. It cannot turn reasoning off (`off` runs at
|
|
5005
|
+
// effort `low`), which suits a tier asked for judgement calls. Its transport warns on every
|
|
5006
|
+
// construction that it is the dearer model; that warning is expected here.
|
|
5007
|
+
reasoning: Object.freeze({
|
|
5008
|
+
model: "gpt-6.1-sol",
|
|
5009
|
+
stallTimeoutMs: AI_STALL_TIMEOUT_MS,
|
|
5010
|
+
timeoutMs: AI_NO_RESPONSE_TIMEOUT_MS
|
|
5011
|
+
})
|
|
4980
5012
|
})
|
|
4981
5013
|
});
|
|
4982
5014
|
function resolveAITiers(overrides) {
|
|
4983
|
-
if (!(overrides === null || overrides === void 0 ? void 0 : overrides.anthropic) && !(overrides === null || overrides === void 0 ? void 0 : overrides.gemini))
|
|
5015
|
+
if (!(overrides === null || overrides === void 0 ? void 0 : overrides.anthropic) && !(overrides === null || overrides === void 0 ? void 0 : overrides.gemini) && !(overrides === null || overrides === void 0 ? void 0 : overrides.openai))
|
|
4984
5016
|
return DEFAULT_AI_TIERS;
|
|
4985
5017
|
return Object.freeze({
|
|
4986
5018
|
anthropic: mergeVendor(DEFAULT_AI_TIERS.anthropic, overrides.anthropic),
|
|
4987
|
-
gemini: mergeVendor(DEFAULT_AI_TIERS.gemini, overrides.gemini)
|
|
5019
|
+
gemini: mergeVendor(DEFAULT_AI_TIERS.gemini, overrides.gemini),
|
|
5020
|
+
openai: mergeVendor(DEFAULT_AI_TIERS.openai, overrides.openai)
|
|
4988
5021
|
});
|
|
4989
5022
|
}
|
|
4990
5023
|
function mergeVendor(defaults, overrides) {
|