perplexity_box 0.0.1 copy "perplexity_box: ^0.0.1" to clipboard
perplexity_box: ^0.0.1 copied to clipboard

'A Perplexity AI provider based on ai_box. '

40/ 160
pub points
53
downloads

We analyzed this package 10 days ago, and awarded it 40 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 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.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Failed report section
Provide documentation
10 / 20trigger folding of the section

Passed check 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.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Failed report section
Platform support
0 / 20trigger folding of the section

Failed check 0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 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

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 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.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 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.

Weekly downloads

Display as:
By versions:
0
likes
40
points
53
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

'A Perplexity AI provider based on ai_box. '

Repository (GitHub)
View/report issues

Topics

#ai #perplexity #ai-box #llm

License

MIT (license)

Dependencies

ai_box, api_http, freezed_annotation, json_annotation

More

Packages that depend on perplexity_box