listModelReadmeDrifts method
README drift stream for one model
Cost: 5 credits, flat. Every commit that changed the model's README on HF, with size_delta between commits so a consumer spots growth spurts and hard prunes without fetching each version. Poll with since_ts=<max commit_ts of your previous run> for an incremental drift feed.
Parameters:
Implementation
Future<ListModelReadmeDrifts200Response?> listModelReadmeDrifts(String id, { int? sinceTs, int? limit, int? offset, Future<void>? abortTrigger, }) async {
final response = await listModelReadmeDriftsWithHttpInfo(id, sinceTs: sinceTs, limit: limit, offset: offset, abortTrigger: abortTrigger,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ListModelReadmeDrifts200Response',) as ListModelReadmeDrifts200Response;
}
return null;
}