dco_decode_chat_request method
ChatRequest
dco_decode_chat_request(
- dynamic raw
)
override
Implementation
@protected ChatRequest dco_decode_chat_request(dynamic raw){ // Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 4) throw Exception('unexpected arr length: expect 4 but see ${arr.length}');
return ChatRequest(model: dco_decode_String(arr[0]),
messages: dco_decode_list_chat_message(arr[1]),
stream: dco_decode_bool(arr[2]),
options: dco_decode_generation_options(arr[3]),); }