SimonWang9610 / gpt_tokenizer

BPE tokenizer used for Dart/Flutter applications when calling ChatGPT APIs
https://pub.dev/packages/flutter_gpt_tokenizer
8 stars 6 forks source link

fixed Error: Required named parameter 'parseErrorData' must be provided. #8

Closed yakppal closed 9 months ago

yakppal commented 10 months ago

Error (Xcode): ../../../../.pub-cache/hosted/pub.dev/gpt_tokenizer-0.1.0/lib/src/gen/bridge_generated.dart:244:57: Error: Required named parameter 'parseErrorData' must be provided.

In recent flutter, parseErrorData is required in FlutterRustBridgeTask.

SimonWang9610 commented 10 months ago

Thanks for your PR. This file is generated by flutter_rust_bridge, so we should not edit it, while it is ok for temporary use.

I will upgrade the version of fluter_rust_brdige and then re-generate it.

I still wonder which version of the flutter you are using, it would help me test if the incoming update would fix this issue.

yakppal commented 10 months ago

Flutter 3.16.8 • channel stable • https://github.com/flutter/flutter.git Framework • revision 67457e669f (3 days ago) • 2024-01-16 16:22:29 -0800 Engine • revision 6e2ea58a5c Tools • Dart 3.2.5 • DevTools 2.28.5

in pubspec.yaml: environment: sdk: '>=2.19.2 <4.0.0' flutter: '>=3.7.12'

SimonWang9610 commented 9 months ago

fixed by https://github.com/SimonWang9610/gpt_tokenizer/pull/9 and a new version was published.