"os.environ[\"TOGETHER_API_KEY\"] = getpass.getpass(\"Enter your Together API key: \")"
"if \"TOGETHER_API_KEY\" not in os.environ:\n",
" os.environ[\"TOGETHER_API_KEY\"] = getpass.getpass(\"Enter your Together API key: \")"
]
]
},
},
{
{
@ -87,21 +88,10 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "652d6238-1f87-422a-b135-f5abbb8652fc",
"id": "652d6238-1f87-422a-b135-f5abbb8652fc",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [],
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m24.0\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m24.1.2\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
}
],
"source": [
"source": [
"%pip install -qU langchain-together"
"%pip install -qU langchain-together"
]
]
@ -113,14 +103,12 @@
"source": [
"source": [
"## Instantiation\n",
"## Instantiation\n",
"\n",
"\n",
"Now we can instantiate our model object and generate chat completions:\n",
"Now we can instantiate our model object and generate chat completions:"
"\n",
"- TODO: Update model instantiation with relevant params."