appback-ai-agent 1.0.2 → 1.0.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/package.json
CHANGED
|
@@ -291,7 +291,7 @@ class GcAdapter extends BaseGameAdapter {
|
|
|
291
291
|
try {
|
|
292
292
|
// Try ONNX model inference
|
|
293
293
|
if (this.modelRegistry && features) {
|
|
294
|
-
const model = this.modelRegistry.
|
|
294
|
+
const model = this.modelRegistry.getProvider('gc', 'gc_move_model')
|
|
295
295
|
if (model) {
|
|
296
296
|
const actionMask = this.featureBuilder.buildActionMask(me, gameState)
|
|
297
297
|
const logits = await model.infer(features)
|
|
@@ -309,7 +309,7 @@ class GcAdapter extends BaseGameAdapter {
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
// Heuristic fallback if no model
|
|
312
|
-
if (direction === 'stay' && !this.modelRegistry?.
|
|
312
|
+
if (direction === 'stay' && !this.modelRegistry?.getProvider('gc', 'gc_move_model')) {
|
|
313
313
|
direction = this._heuristicMove(me, gameState)
|
|
314
314
|
}
|
|
315
315
|
|