saveMetadata method

  1. @override
Future<void> saveMetadata(
  1. String threadId,
  2. Map<String, String> metadata
)
override

Implementation

@override
Future<void> saveMetadata(
  String threadId,
  Map<String, String> metadata,
) async {
  var url = 'https://api.openai.com/v1/threads/$threadId';
  await httpClient.post(url, data: {
    'metadata': metadata,
  });
}