translation_engine_openai 0.1.6
translation_engine_openai: ^0.1.6 copied to clipboard
OpenAI translation engine
We analyzed this package 7 hours ago, and awarded it 100 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description is too short.
Add more detail to the description field of pubspec.yaml. Use 50 to 180 characters to describe the package, what it does, and its target use case.
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
0/10 points: 20% or more of the public API has dartdoc comments
0 out of 16 API elements (0.0 %) have documentation comments.
Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.
To highlight public API members missing documentation consider enabling the public_member_api_docs lint.
Some symbols that are missing documentation: translation_engine_openai, translation_engine_openai.OpenAITranslationEngine, translation_engine_openai.OpenAITranslationEngine.OpenAITranslationEngine.new, translation_engine_openai.OpenAITranslationEngine.detectLanguage, translation_engine_openai.OpenAITranslationEngine.disabled.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:translation_engine_openai/translation_engine_openai.dartthat imports:package:dart_openai/dart_openai.dartthat imports:package:dart_openai/src/instance/openai.dartthat imports:package:dart_openai/src/instance/model/model.dartthat imports:package:dart_openai/src/core/networking/client.dartthat imports:dart:io
50/50 points: code has no errors, warnings, lints, or formatting issues
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
dart_openai |
^5.1.0 |
5.1.0 | 6.1.1 | |
uni_translate_client |
^0.1.3 |
0.1.7 | 0.1.7 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
async |
- | 2.13.0 | 2.13.0 | |
collection |
- | 1.19.1 | 1.19.1 | |
fetch_api |
- | 2.3.1 | 2.3.1 | |
fetch_client |
- | 1.2.0 | 1.2.0 | |
http |
- | 1.6.0 | 1.6.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
json_annotation |
- | 4.9.0 | 4.9.0 | |
meta |
- | 1.17.0 | 1.17.0 | |
path |
- | 1.9.1 | 1.9.1 | |
source_span |
- | 1.10.1 | 1.10.1 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
web |
- | 1.1.1 | 1.1.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^5.1.0` on dart_openai does not support the stable version `6.0.0`.
Try running dart pub upgrade --major-versions dart_openai to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 4 errors:
NON_TYPE_AS_TYPE_ARGUMENT-lib/translation_engine_openai.dart:34:8- The name 'TranslationEngineScope' isn't a type, so it can't be used as a type argument.UNDEFINED_IDENTIFIER-lib/translation_engine_openai.dart:36:7- Undefined name 'TranslationEngineScope'.UNDEFINED_CLASS-lib/translation_engine_openai.dart:59:5- Undefined class 'StreamTranslateResponse'.
Run dart pub downgrade and then dart analyze to reproduce the above problem.
You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.
Analyzed with Pana 0.23.5, Dart 3.10.7.
Check the analysis log for details.