Skip to content

Commit

Permalink
fix(android): arch check on init context
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Sep 4, 2023
1 parent d10bf0c commit 95519e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/com/rnllama/LlamaContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class LlamaContext {
private DeviceEventManagerModule.RCTDeviceEventEmitter eventEmitter;

public LlamaContext(int id, ReactApplicationContext reactContext, ReadableMap params) {
if (LlamaContext.isArm64V8a() == false || LlamaContext.isX86_64() == false) {
if (LlamaContext.isArm64V8a() == false && LlamaContext.isX86_64() == false) {
throw new IllegalStateException("Only 64-bit architectures are supported");
}
if (!params.hasKey("model")) {
Expand Down

0 comments on commit 95519e4

Please sign in to comment.