perplexity_box 0.0.1
perplexity_box: ^0.0.1 copied to clipboard
'A Perplexity AI provider based on ai_box. '
We analyzed this package 10 days ago, and awarded it 40 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.
10/10 points: 20% or more of the public API has dartdoc comments
94 out of 181 API elements (51.9 %) have documentation comments.
Some symbols that are missing documentation: perplexity_box, perplexity_box.ChatCompletionMessage, perplexity_box.ChatCompletionMessage.ChatCompletionMessage.fromJson, perplexity_box.ChatCompletionMessage.ChatCompletionMessage.new, perplexity_box.ChatCompletionMessage.content.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 19 issues. Showing the first 2:
ERROR: Target of URI doesn't exist: 'package:ai_box/openai_compat.dart'.
lib/src/perplexity.dart:2:8
╷
2 │ import 'package:ai_box/openai_compat.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/perplexity.dart
ERROR: Missing concrete implementations of 'AIBase.getModelIds' and 'LLMAIBase.chat'.
lib/src/perplexity.dart:4:7
╷
4 │ class Perplexity extends LLMAIBase {
│ ^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/perplexity.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
ai_box |
^0.0.1 |
0.0.1 | 0.3.0 | |
api_http |
^0.0.1 |
0.0.2 | 0.1.0 | |
freezed_annotation |
^3.0.0 |
3.1.0 | 3.1.0 | |
json_annotation |
^4.9.0 |
4.12.0 | 4.12.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
async |
- | 2.13.1 | 2.13.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
http |
- | 1.6.0 | 1.6.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
meta |
- | 1.19.0 | 1.19.0 | |
path |
- | 1.9.1 | 1.9.1 | |
source_span |
- | 1.10.2 | 1.10.2 | |
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 `^0.0.1` on ai_box does not support the stable version `0.1.0`.
Try running dart pub upgrade --major-versions ai_box to update the constraint.
The constraint `^0.0.1` on api_http does not support the stable version `0.1.0`.
Try running dart pub upgrade --major-versions api_http 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 15 errors:
URI_DOES_NOT_EXIST-lib/src/perplexity.dart:2:8- Target of URI doesn't exist: 'package:ai_box/openai_compat.dart'.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER-lib/src/perplexity.dart:4:7- Missing concrete implementations of 'AIBase.getModelIds' and 'LLMAIBase.chat'.NON_TYPE_AS_TYPE_ARGUMENT-lib/src/perplexity.dart:24:10- The name 'LLMCompletionResponse' isn't a type, so it can't be used as a type argument.
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.19, Dart 3.13.1.
Check the analysis log for details.