openai 1.0.0 copy "openai: ^1.0.0" to clipboard
openai: ^1.0.0 copied to clipboard

OpenAI API client

35/ 160
pub points
61
downloads

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

Failed report section
Follow Dart file conventions
15 / 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.

Homepage URL doesn't exist.

At the time of the analysis http://tribehealthsolutions.com was unreachable. Make sure that the website is reachable via HEAD requests.

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

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` does not contain reference to the current version ("1.0.0").

Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.

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

363 out of 762 API elements (47.6 %) have documentation comments.

Some symbols that are missing documentation: openai.api, openai.api.ApiClient, openai.api.ApiClient.ApiClient.new, openai.api.ApiClient.addDefaultHeader, openai.api.ApiClient.authentication.

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 101 issues. Showing the first 2:

ERROR: The argument type 'List

lib/model/create_answer_request.dart:247:19

    ╷
247 │           examples: json[r'examples'] is List
    │ ┌───────────────────^
248 │ │           ? (json[r'examples'] as List).map(
249 │ │               (e) => e == null ? null : (e as List).cast<String>()
250 │ │             ).toList()
251 │ │           : null,
    │ └────────────────^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/model/create_answer_request.dart

ERROR: The method 'listFromJson' isn't defined for the type 'Object'.

lib/model/create_answer_request.dart:269:24

    ╷
269 │         expand: Object.listFromJson(json[r'expand']) ?? const [],
    │                        ^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/model/create_answer_request.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
http >=0.13.0 <0.14.0 0.13.6 1.6.0
intl ^0.17.0 0.17.0 0.20.2
meta ^1.1.8 1.18.1 1.18.1
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
http_parser - 4.1.2 4.1.2
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

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `>=0.13.0 <0.14.0` on http does not support the stable version `1.0.0`.

Try running dart pub upgrade --major-versions http to update the constraint.

The constraint `^0.17.0` on intl does not support the stable version `0.18.0`.

Try running dart pub upgrade --major-versions intl 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 39 errors:

  • ARGUMENT_TYPE_NOT_ASSIGNABLE - lib/model/create_answer_request.dart:247:19 - The argument type 'List<List
  • UNDEFINED_METHOD - lib/model/create_answer_request.dart:269:24 - The method 'listFromJson' isn't defined for the type 'Object'.
  • MISSING_IDENTIFIER - lib/model/create_answer_request_stop.dart:16:3 - Expected an identifier.

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.10, Dart 3.11.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
5
likes
35
points
61
downloads

Publisher

unverified uploader

Weekly Downloads

OpenAI API client

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

http, intl, meta

More

Packages that depend on openai