baro-ai 0.36.1 → 0.36.3
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/cli.mjs +6 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/run-architect.mjs +6 -3
- package/dist/run-architect.mjs.map +1 -1
- package/dist/run-planner.mjs +6 -3
- package/dist/run-planner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -9878,9 +9878,13 @@ function extractVerdictJson(text) {
|
|
|
9878
9878
|
}
|
|
9879
9879
|
|
|
9880
9880
|
// ../baro-orchestrator/src/planning/openai-runtime.ts
|
|
9881
|
-
var
|
|
9881
|
+
var _runtime = null;
|
|
9882
|
+
function getRuntime() {
|
|
9883
|
+
if (_runtime === null) _runtime = new OpenAIResponses();
|
|
9884
|
+
return _runtime;
|
|
9885
|
+
}
|
|
9882
9886
|
async function runInferenceRound(context, model) {
|
|
9883
|
-
const response = await
|
|
9887
|
+
const response = await getRuntime().infer(new InferenceRequest(model, context));
|
|
9884
9888
|
return {
|
|
9885
9889
|
items: response.contextItems,
|
|
9886
9890
|
usage: response.tokenUsage
|