Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b07e1e

Browse files
authored
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 commit 0b07e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/azure/finetuning.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@
385385
"source": [
386386
"print('Sending a test completion job')\n",
387387
"start_phrase = 'When I go to the store, I want a'\n",
388-
"response = openai.Completion.create(engine=deployment_id, model=model, prompt=start_phrase, max_tokens=4)\n",
388+
"response = openai.Completion.create(engine=deployment_id, prompt=start_phrase, max_tokens=4)\n",
389389
"text = response['choices'][0]['text'].replace('\\n', '').replace(' .', '.').strip()\n",
390390
"print(f'\"{start_phrase} {text}\"')\n"
391391
]

0 commit comments

Comments
 (0)