diff --git a/cookbook/integrations/Instructor_with_Portkey.ipynb b/cookbook/integrations/Instructor_with_Portkey.ipynb index e04c6cb4a..dcf5638e2 100644 --- a/cookbook/integrations/Instructor_with_Portkey.ipynb +++ b/cookbook/integrations/Instructor_with_Portkey.ipynb @@ -14,6 +14,15 @@ } }, "cells": [ + { + "cell_type": "markdown", + "source": [ + "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1jaemmsUi8TnrK6so6pvvDG6e666QIng2?usp=sharing)\n" + ], + "metadata": { + "id": "03GPOrjb8FJ1" + } + }, { "cell_type": "markdown", "source": [ @@ -44,11 +53,31 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 1, "metadata": { - "id": "uQLdtnFhWbIE" + "id": "uQLdtnFhWbIE", + "colab": { + "base_uri": "https://localhost:8080/" + }, + "outputId": "b0e43ab5-fd2a-443b-a5e2-e10383289e9a" }, - "outputs": [], + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m53.1/53.1 kB\u001b[0m \u001b[31m1.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m405.9/405.9 kB\u001b[0m \u001b[31m5.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m328.3/328.3 kB\u001b[0m \u001b[31m7.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m327.6/327.6 kB\u001b[0m \u001b[31m10.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m75.6/75.6 kB\u001b[0m \u001b[31m1.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.7/12.7 MB\u001b[0m \u001b[31m20.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m77.9/77.9 kB\u001b[0m \u001b[31m3.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m58.3/58.3 kB\u001b[0m \u001b[31m1.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25h" + ] + } + ], "source": [ "!pip install -qU instructor portkey-ai openai jsonref" ] @@ -76,7 +105,7 @@ " base_url=PORTKEY_GATEWAY_URL,\n", " api_key = \"X\",\n", " default_headers=createHeaders(\n", - " virtual_key= \"gpt3-8070a6\",\n", + " virtual_key= \"open-ai-key-fb040b\",\n", " api_key=userdata.get('PORTKEY_API_KEY')\n", "\n", " )\n", @@ -103,9 +132,9 @@ "base_uri": "https://localhost:8080/" }, "id": "VxjMXaS1cgiY", - "outputId": "1ebaea29-97cb-4a89-c728-815c52607410" + "outputId": "9506a983-aa2d-4c01-c4f4-4a4b7d07cc40" }, - "execution_count": 4, + "execution_count": 12, "outputs": [ { "output_type": "stream", @@ -118,4 +147,4 @@ ] } ] -} \ No newline at end of file +}