getModelReadmeAtWithHttpInfo method

Future<Response> getModelReadmeAtWithHttpInfo(
  1. String id,
  2. String commit, {
  3. Future<void>? abortTrigger,
})

README content at one commit (wayback)

Cost: 10 credits, flat. The wayback-machine leg of the change-stream. Returns the exact README content for one model at one commit sha — used after spotting a suspicious drift on GET /api/v1/models/{id}/drifts.

Note: This method returns the HTTP Response.

Parameters:

  • String id (required):

  • String commit (required): HF commit sha for the README, from /drifts.

Implementation

Future<Response> getModelReadmeAtWithHttpInfo(String id, String commit, { Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/models/{id}/readme-at/{commit}'
    .replaceAll('{id}', id)
    .replaceAll('{commit}', commit);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    abortTrigger: abortTrigger,
  );
}