I get the following when requesting some completions:
error: type 'Null' is not a subtype of type 'int' in type cast, stacktrace: #0 new Usage.fromMap (package:openai_client/src/model/shared_models/usage.dart:17:53)
I imagine it happens when no results are generated by openAI
I get the following when requesting some completions:
error: type 'Null' is not a subtype of type 'int' in type cast, stacktrace: #0 new Usage.fromMap (package:openai_client/src/model/shared_models/usage.dart:17:53)
I imagine it happens when no results are generated by openAI