Skip to content

Commit

Permalink
docs: Update multimodal example
Browse files Browse the repository at this point in the history
  • Loading branch information
abetlen committed Feb 26, 2024
1 parent bf315ee commit 79c649c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions examples/notebooks/Multimodal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 13,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{'text': 'Llama +'}\n"
"{'text': 'Llama C++'}\n"
]
}
],
Expand All @@ -42,7 +42,17 @@
" ],\n",
" }\n",
" ],\n",
" response_format={ \"type\": \"json_object\" }\n",
" response_format={ \n",
" \"type\": \"json_object\",\n",
" \"schema\": {\n",
" \"type\": \"object\",\n",
" \"properties\": {\n",
" \"text\": {\n",
" \"type\": \"string\"\n",
" }\n",
" }\n",
" }\n",
" }\n",
")\n",
"import json\n",
"print(json.loads(response.choices[0].message.content))"
Expand Down

0 comments on commit 79c649c

Please sign in to comment.