Skip to content

Commit

Permalink
Add "run_id" parameter to the listMesages API.
Browse files Browse the repository at this point in the history
  • Loading branch information
nomtats committed Apr 27, 2024
1 parent aa36c8d commit 2e411dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Messages {
String order = 'desc',
String? after,
String? before,
String? runId,
}) {
String url = _client.apiUrl +
kThread +
Expand All @@ -44,6 +45,9 @@ class Messages {
if (after != null && after.isNotEmpty) {
url += '&after=$after';
}
if (runId != null && runId.isNotEmpty) {
url += '&run_id=$runId';
}

return _client.get(
url,
Expand Down

0 comments on commit 2e411dd

Please sign in to comment.