Skip to content

Commit 7cd7c69

Browse files
Re-update nb
1 parent d0da262 commit 7cd7c69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/examples/streaming.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
"source": [
183183
"# Wrap the OpenAI API call with the `guard` object\n",
184184
"raw_llm_output, validated_output, *rest = guard(\n",
185-
" openai.completions.create,\n",
185+
" openai.Completion.create,\n",
186186
" prompt_params={\"doctors_notes\": doctors_notes},\n",
187187
" engine=\"text-davinci-003\",\n",
188188
" max_tokens=1024,\n",
@@ -544,7 +544,7 @@
544544
"source": [
545545
"# Wrap the OpenAI API call with the `guard` object\n",
546546
"fragment_generator = guard(\n",
547-
" openai.completions.create,\n",
547+
" openai.Completion.create,\n",
548548
" prompt_params={\"doctors_notes\": doctors_notes},\n",
549549
" engine=\"text-davinci-003\",\n",
550550
" max_tokens=1024,\n",
@@ -880,7 +880,7 @@
880880
"source": [
881881
"# Wrap the OpenAI API call with the `guard` object\n",
882882
"raw, validated, *rest = guard(\n",
883-
" openai.completions.create,\n",
883+
" openai.Completion.create,\n",
884884
" engine=\"text-davinci-003\",\n",
885885
" max_tokens=50,\n",
886886
" temperature=0.1,\n",
@@ -942,7 +942,7 @@
942942
"source": [
943943
"# Wrap the OpenAI API call with the `guard` object\n",
944944
"fragment_generator = guard(\n",
945-
" openai.completions.create,\n",
945+
" openai.Completion.create,\n",
946946
" engine=\"text-davinci-003\",\n",
947947
" max_tokens=50,\n",
948948
" temperature=0.1,\n",

0 commit comments

Comments
 (0)