Skip to main content

Query a chat model

To query a chat model, use the together chat.completions method. Use the --model option to choose your model, and the --message option to pass in a message’s role and text:
Shell
You can also pass in multiple messages:
Shell

Start an interactive chat

You can start an interactive chat with the together chat.interactive method. Pass in the model using the --model option to kick off a new chat:
Shell

View all commands

To see all the available chat completions commands, run:
Shell
To see all the available chat interactive commands, run:
Shell