-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
modelIssues related to exporting, improving, fixing ML modelsIssues related to exporting, improving, fixing ML models
Description
Description
Normal response
"```[{"name": "brightness", "arguments": {"targetBrightness": 100}}]```"
Wrong response
"```[{"name": "brightness", "arguments": {"targetBrightness": 100}}]``````[]```"
[React Native ExecuTorch] SyntaxError: JSON Parse error: Unexpected character: `
at parse (native)
at parseToolCall (llm.ts:17:48)
at ?anon_0_ (LLMController.ts:280:36)
at next (native)
at asyncGeneratorStep (asyncToGenerator.js:3:17)
at _next (asyncToGenerator.js:17:27)
at tryCallOne (address at InternalBytecode.js:1:1180)
at anonymous (address at InternalBytecode.js:1:1874)
Steps to reproduce
- Set get_weather and brightness in TOOL_DEFINITIONS.
- Request the weather and then change the brightness.
- Receive malformed JSON.
Snack or a link to a repository
No response
React Native Executorch version
0.5.15
React Native version
0.82.1
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
Real device
Device model
Samsung Galaxy 24 ultra (Android 15)
AI model
HAMMER2_1_1_5B
Performance logs
No response
Acknowledgements
Yes
Metadata
Metadata
Assignees
Labels
modelIssues related to exporting, improving, fixing ML modelsIssues related to exporting, improving, fixing ML models