@bivy/bivy 0.16.25-staging.7 → 0.16.25-staging.9
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/server.js +2 -2
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -9295,7 +9295,7 @@ async function modelsListEventFor(record) {
|
|
|
9295
9295
|
const current = session.getCurrentModel();
|
|
9296
9296
|
const models = await publicModelsList(session, current);
|
|
9297
9297
|
const thinking = publicThinkingInfo(session);
|
|
9298
|
-
return { type: "models.list", sessionId: record.id, runtimeId: record.runtimeId, current: current ? publicModel(current, current) : null, models, thinking };
|
|
9298
|
+
return { type: "models.list", sessionId: record.id, runtimeId: record.runtimeId, modelSelection: getRuntime(record.runtimeId).capabilities.modelSelection !== false, current: current ? publicModel(current, current) : null, models, thinking };
|
|
9299
9299
|
}
|
|
9300
9300
|
function publicThinkingInfo(session) {
|
|
9301
9301
|
const supports = typeof session.supportsThinking === "function" ? session.supportsThinking() : false;
|
|
@@ -9322,7 +9322,7 @@ app.get("/api/models", async (req, res, next) => {
|
|
|
9322
9322
|
const current = session.getCurrentModel();
|
|
9323
9323
|
const models = await publicModelsList(session, current);
|
|
9324
9324
|
const thinking = publicThinkingInfo(session);
|
|
9325
|
-
res.json({ sessionId: record.id, current: current ? publicModel(current, current) : null, models, thinking });
|
|
9325
|
+
res.json({ sessionId: record.id, modelSelection: getRuntime(record.runtimeId).capabilities.modelSelection !== false, current: current ? publicModel(current, current) : null, models, thinking });
|
|
9326
9326
|
}
|
|
9327
9327
|
catch (error) {
|
|
9328
9328
|
next(error);
|
package/package.json
CHANGED