resetLlmSubjectQuota method
Future<LlmQuotaState>
resetLlmSubjectQuota(
- String projectId,
- LlmQuotaSubjectType subjectType,
- String subjectId
Implementation
Future<LlmQuotaState> resetLlmSubjectQuota(String projectId, LlmQuotaSubjectType subjectType, String subjectId) async {
final response = await httpClient.post(_llmSubjectQuotaUri(projectId, subjectType, subjectId, reset: true));
if (response.statusCode >= 400) {
throw MeshagentException('Failed to reset LLM subject quota. Status code: ${response.statusCode}, body: ${response.body}');
}
return LlmQuotaState.fromJson(jsonDecode(response.body) as Map<String, dynamic>);
}