Skip to main content

abliteration 0.1.8 copy "abliteration: ^0.1.8" to clipboard
abliteration: ^0.1.8 copied to clipboard

Dart client for the abliteration.org catalog API. Auto-generated from the OpenAPI spec; covers every route on /api/v1.

abliteration #

Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline.

Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing.

Responses report cost and credits_remaining on every success. While metering reads preview, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads billed, it was.

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Generator version: 7.25.0
  • Build package: org.openapitools.codegen.languages.DartClientCodegen For more information, please visit https://abliteration.org/api

Requirements #

Dart 2.17 or later

Installation & Usage #

Github #

If this Dart package is published to Github, add the following dependency to your pubspec.yaml

dependencies:
  abliteration:
    git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git

Local #

To use the package in your local drive, add the following dependency to your pubspec.yaml

dependencies:
  abliteration:
    path: /path/to/abliteration

Tests #

TODO

Getting Started #

Please follow the installation procedure and then run the following:

import 'package:abliteration/api.dart';

// TODO Configure HTTP Bearer authorization: bearerAuth
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken(yourTokenGeneratorFunction);

final api_instance = AuthorsApi();
final id = mlabonne; // String | 

try {
    final result = api_instance.getAuthor(id);
    print(result);
} catch (e) {
    print('Exception when calling AuthorsApi->getAuthor: $e\n');
}

Documentation for API Endpoints #

All URIs are relative to https://abliteration.org

Class Method HTTP request Description
AuthorsApi getAuthor GET /api/v1/authors/{id} Get one author
AuthorsApi listAuthors GET /api/v1/authors List authors
DatasetsApi getDataset GET /api/v1/datasets/{id} Get one dataset
DatasetsApi listDatasets GET /api/v1/datasets List datasets
IndicesApi getIndex GET /api/v1/indices/{id} One index with history
IndicesApi listIndices GET /api/v1/indices All four indices
MethodsApi getMethod GET /api/v1/methods/{id} Get one method
MethodsApi listMethods GET /api/v1/methods List the method taxonomy
ModelsApi getHistoricalDeletionSummary GET /api/v1/models/historical-deletions/summary Historical deletions — aggregate summary
ModelsApi getModel GET /api/v1/models/{id} Get one model
ModelsApi getModelDownloadHistory GET /api/v1/models/{id}/download-history Per-model download timeline
ModelsApi getModelReadmeAt GET /api/v1/models/{id}/readme-at/{commit} README content at one commit (wayback)
ModelsApi listAnomalies GET /api/v1/market/anomalies Anomalies in the download counter (change stream)
ModelsApi listDelistedModels GET /api/v1/models/delisted List delisted models (change stream)
ModelsApi listHistoricalDeletions GET /api/v1/models/historical-deletions/list Historical deletions — paged list
ModelsApi listModelReadmeDrifts GET /api/v1/models/{id}/drifts README drift stream for one model
ModelsApi listModels GET /api/v1/models List models
TimelineApi listTimeline GET /api/v1/timeline Curated field events

Documentation For Models #

  • Author
  • AuthorDetail
  • DaiPoint
  • Dataset
  • DatasetDetail
  • DeletionSummary
  • DeletionSummaryTimelineInner
  • DeletionSummaryTopByDownloadsInner
  • DelistedModel
  • DownloadAnomaly
  • DownloadPoint
  • Envelope
  • Error
  • Event
  • GetAuthor200Response
  • GetDataset200Response
  • GetHistoricalDeletionSummary200Response
  • GetIndex200Response
  • GetMethod200Response
  • GetModel200Response
  • GetModelDownloadHistory200Response
  • GetModelReadmeAt200Response
  • HistoricalDeletion
  • Index
  • IndexDetail
  • ListAnomalies200Response
  • ListAuthors200Response
  • ListDatasets200Response
  • ListDelistedModels200Response
  • ListHistoricalDeletions200Response
  • ListIndices200Response
  • ListMethods200Response
  • ListModelReadmeDrifts200Response
  • ListModels200Response
  • ListTimeline200Response
  • Method
  • MethodDetail
  • MethodDetailAllOfTopAuthors
  • ModelDetail
  • ModelSummary
  • Passport
  • ReadmeAt
  • ReadmeDrift

Documentation For Authorization #

Authentication schemes defined for the API:

bearerAuth #

  • Type: HTTP Bearer authentication

Author #

0
likes
105
points
372
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dart client for the abliteration.org catalog API. Auto-generated from the OpenAPI spec; covers every route on /api/v1.

Repository

License

MIT (license)

Dependencies

collection, http, intl, meta

More

Packages that depend on abliteration