Completions
Creating completions
Learn how to generate responses from Cygnet
Models
For Completions, we currently support the following models:
cygnet-llama-3
The model name cygnet
will point to our latest model.
Messages
To interact with our model, you will need to format your prompt as a series of messages. Each message has a role
and content
. Different role
s are treated differently by the model. The available roles are:
system
(optional): Used to provide instructions, guidelines, and context to the model regarding the ensuing conversation between user and modeluser
: Used for messages sent by the user to the modeldata
: See the guide on Data elements for an explanation of this roleassistant
: Used for messages sent by our model to the user
In our Python client, messages are represented as follows:
Completions
Below we provide examples of usage of our Completions endpoint, for non-streaming, streaming, async non-streaming, and async with streaming.