getCurrentUserLlmProxyQuota method
Implementation
Future<LlmQuotaState> getCurrentUserLlmProxyQuota(String projectId) async {
final encodedProjectId = Uri.encodeComponent(projectId);
final uri = Uri.parse('$baseUrl/accounts/projects/$encodedProjectId/llm-proxy/quota');
final response = await httpClient.get(uri);
if (response.statusCode >= 400) {
throw MeshagentException('Failed to retrieve current user LLM quota. Status code: ${response.statusCode}, body: ${response.body}');
}
return LlmQuotaState.fromJson(jsonDecode(response.body) as Map<String, dynamic>);
}