koneck 2.76.0 → 2.76.1
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/engine.d.ts +12 -0
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +22 -2
- package/dist/engine.js.map +1 -1
- package/dist/ink-chat.d.ts.map +1 -1
- package/dist/ink-chat.js +17 -1
- package/dist/ink-chat.js.map +1 -1
- package/package.json +1 -1
package/dist/ink-chat.js
CHANGED
|
@@ -1650,7 +1650,23 @@ export function App({ config: initialConfig, clearFrame }) {
|
|
|
1650
1650
|
if (isCurrent)
|
|
1651
1651
|
showNextAsk();
|
|
1652
1652
|
}),
|
|
1653
|
-
|
|
1653
|
+
/*
|
|
1654
|
+
* A switch changes what this session is, so the session says so.
|
|
1655
|
+
*
|
|
1656
|
+
* This took only the message and printed it, which left the header, the composer's model button
|
|
1657
|
+
* and everything written to disk still naming the model that had just been abandoned. The run
|
|
1658
|
+
* carried on correctly and the interface described a different one — and a session that moved
|
|
1659
|
+
* from glm to gemini after a rate limit was filed under glm, beside a transcript that was
|
|
1660
|
+
* mostly gemini's work.
|
|
1661
|
+
*/
|
|
1662
|
+
onFailover: (message, to) => {
|
|
1663
|
+
addSystem(message);
|
|
1664
|
+
const next = to.provider && to.provider !== cfgRef.current.provider
|
|
1665
|
+
? { ...cfgRef.current, provider: to.provider, model: to.model }
|
|
1666
|
+
: { ...cfgRef.current, model: to.model };
|
|
1667
|
+
cfgRef.current = next;
|
|
1668
|
+
setCfg(next);
|
|
1669
|
+
},
|
|
1654
1670
|
// What this turn leaves behind, said where the rest of the session's own account of itself is.
|
|
1655
1671
|
onHandoff: (said) => addSystem(said),
|
|
1656
1672
|
});
|