picocode-core 0.9.183 → 0.9.184
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/package.json +1 -1
- package/src/controller.js +2 -1
package/package.json
CHANGED
package/src/controller.js
CHANGED
|
@@ -1318,7 +1318,8 @@ export function createController({ boot }) {
|
|
|
1318
1318
|
].filter((segment) => segment.tokens > 0)
|
|
1319
1319
|
.map((segment, i) => ({ ...segment, color: CONTEXT_COLORS[i] }))
|
|
1320
1320
|
|
|
1321
|
-
|
|
1321
|
+
const limit = state.model.context ?? boot.models.find((model) => model.name === state.model.name)?.context ?? null
|
|
1322
|
+
return { model: state.model.name, limit, rows, measured, segments }
|
|
1322
1323
|
}
|
|
1323
1324
|
|
|
1324
1325
|
async function connectProvider() {
|