mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-31 11:54:30 +01:00
Update LeaderboardService to use PUT instead of POST
This commit is contained in:
@@ -12,7 +12,7 @@ class LeaderboardService {
|
||||
/// [benchmarkRun] is a BenchmarkRun object representing the data of a completed benchmark.
|
||||
Future<Map<String, dynamic>> submitReport(BenchmarkRun benchmarkRun) async {
|
||||
try {
|
||||
return await api.post(
|
||||
return await api.put(
|
||||
'api/reports',
|
||||
benchmarkRun.toJson(),
|
||||
apiType: ApiType.leaderboard,
|
||||
|
||||
Reference in New Issue
Block a user