//clika-runtime/io.clika.modelverse/GenerativeModel/chat
chat
[common]
fun chat(messages: List<ChatMessage>, config: GenerationConfig, listener: GenerationListener): GenerationHandle
Stream a reply to messages under config. Returns at once; the worker runs the request and calls listener on its thread. A second chat while one runs waits for the first to end. After close the listener receives GenerationListener.onError and nothing else.