From 4195d712cc1586421573047588233418135eb574 Mon Sep 17 00:00:00 2001 From: Ted Sanders Date: Wed, 20 Jul 2022 17:35:15 -0700 Subject: [PATCH] updates azure examples --- examples/azure/embeddings.ipynb | 2 +- examples/azure/finetuning.ipynb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/azure/embeddings.ipynb b/examples/azure/embeddings.ipynb index f008a086..544367d5 100644 --- a/examples/azure/embeddings.ipynb +++ b/examples/azure/embeddings.ipynb @@ -141,7 +141,7 @@ "metadata": {}, "outputs": [], "source": [ - "embeddings = openai.Embedding.create(engine=deployment_id,\n", + "embeddings = openai.Embedding.create(deployment_id=deployment_id,\n", " input=\"The food was delicious and the waiter...\")\n", " \n", "print(embeddings)" diff --git a/examples/azure/finetuning.ipynb b/examples/azure/finetuning.ipynb index 8e59dc52..ba3405ca 100644 --- a/examples/azure/finetuning.ipynb +++ b/examples/azure/finetuning.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Azure Fune tuning example\n", + "# Azure Fine tuning example\n", "In this example we'll try to go over all operations that can be done using the Azure endpoints and their differences with the openAi endpoints (if any).
\n", "This example focuses on finetuning but touches on the majority of operations that are also available using the API. This example is meant to be a quick way of showing simple operations and is not meant as a finetune model adaptation tutorial.\n" ] @@ -414,7 +414,7 @@ "source": [ "print('Sending a test completion job')\n", "start_phrase = 'When I go to the store, I want a'\n", - "response = openai.Completion.create(engine=deployment_id, prompt=start_phrase, max_tokens=4)\n", + "response = openai.Completion.create(deployment_id=deployment_id, prompt=start_phrase, max_tokens=4)\n", "text = response['choices'][0]['text'].replace('\\n', '').replace(' .', '.').strip()\n", "print(f'\"{start_phrase} {text}\"')\n" ]