eve-hub 0.16.37 → 0.16.38
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/bot-model.mjs +7 -2
- package/package.json +1 -1
package/bot-model.mjs
CHANGED
|
@@ -57,9 +57,14 @@ export const GATEWAY_PROVIDERS = Object.freeze({
|
|
|
57
57
|
|
|
58
58
|
// Provider options that fit `model`, and only those. Reasoning text is opt-in
|
|
59
59
|
// on current Anthropic and OpenAI models; ask for summaries so the UI can
|
|
60
|
-
// interleave them with tool calls.
|
|
60
|
+
// interleave them with tool calls. Gateway's automatic caching marks only the
|
|
61
|
+
// latest messages, so a resumed session never finds the system prompt another
|
|
62
|
+
// session already cached; anchoring message 0 lets it read that prefix.
|
|
61
63
|
export function modelOptionsFor(model) {
|
|
62
|
-
if (model.startsWith("anthropic/")) return { providerOptions: {
|
|
64
|
+
if (model.startsWith("anthropic/")) return { providerOptions: {
|
|
65
|
+
anthropic: { thinking: { type: "adaptive", display: "summarized" } },
|
|
66
|
+
gateway: { cacheAnchorMessageIndex: 0 },
|
|
67
|
+
} };
|
|
63
68
|
if (model.startsWith("openai/")) return { providerOptions: { openai: { reasoningSummary: "auto" } } };
|
|
64
69
|
const order = GATEWAY_PROVIDERS[model];
|
|
65
70
|
return order ? { providerOptions: { gateway: { order: [...order] } } } : undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eve-hub",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.38",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Bot-side code shared by every hub agent: registry tools, the roster hook, the eve channel, the host sandbox and browser, and model helpers.",
|
|
6
6
|
"type": "module",
|