@inferrlm/react-native-mlx 0.4.2-alpha.1 → 0.4.2-alpha.2

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.
@@ -794,6 +794,9 @@ class HybridLLM: HybridLLMSpec {
794
794
 
795
795
  func clearHistory() throws {
796
796
  messageHistory = []
797
- log("Message history cleared")
797
+ if let container = self.container {
798
+ self.session = ChatSession(container, instructions: self.systemPrompt)
799
+ }
800
+ log("History and session cleared")
798
801
  }
799
802
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inferrlm/react-native-mlx",
3
3
  "description": "MLX Swift integration for React Native - InferrLM fork with enhanced features",
4
- "version": "0.4.2-alpha.1",
4
+ "version": "0.4.2-alpha.2",
5
5
  "main": "./lib/module/index.js",
6
6
  "module": "./lib/module/index.js",
7
7
  "types": "./lib/typescript/src/index.d.ts",