Learn how to create requests to LLM providers using Polyglot.
with()
method is the main way to set the parameters of the requests to LLM providers.
It accepts several parameters:
Messages
ClassMessages
class to create message sequences more conveniently:
role
and content
fieldCognesy\Messages\Utils\Image
class for easier conversion of image files to the message format.