load method

  1. @override
Future<Conversation> load(
  1. String id
)
override

Implementation

@override
Future<Conversation> load(String id) async {
  var url = 'https://api.openai.com/v1/threads/$id';
  var response = await httpClient.get(url);
  Map<String, dynamic> data = response.data;
  return Conversation.fromMap(data);
}