Commit 0b07e1e9

Keiji Kanazawa <gojira@users.noreply.github.com>
2022-05-02 21:16:08
Remove model param in Completion call (#88)
The `model` param is not required for Azure, and its presence results in an authentication error.
1 parent 95fa7d0
Changed files (1)
examples
examples/azure/finetuning.ipynb
@@ -385,7 +385,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, model=model, prompt=start_phrase, max_tokens=4)\n",
+    "response = openai.Completion.create(engine=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"
    ]