Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 79c649c

Browse filesBrowse files
committed
docs: Update multimodal example
1 parent bf315ee commit 79c649c
Copy full SHA for 79c649c

File tree

Expand file treeCollapse file tree

1 file changed

+13
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+13
-3
lines changed

‎examples/notebooks/Multimodal.ipynb

Copy file name to clipboardExpand all lines: examples/notebooks/Multimodal.ipynb
+13-3Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 10,
14+
"execution_count": 13,
1515
"metadata": {},
1616
"outputs": [
1717
{
1818
"name": "stdout",
1919
"output_type": "stream",
2020
"text": [
21-
"{'text': 'Llama +'}\n"
21+
"{'text': 'Llama C++'}\n"
2222
]
2323
}
2424
],
@@ -42,7 +42,17 @@
4242
" ],\n",
4343
" }\n",
4444
" ],\n",
45-
" response_format={ \"type\": \"json_object\" }\n",
45+
" response_format={ \n",
46+
" \"type\": \"json_object\",\n",
47+
" \"schema\": {\n",
48+
" \"type\": \"object\",\n",
49+
" \"properties\": {\n",
50+
" \"text\": {\n",
51+
" \"type\": \"string\"\n",
52+
" }\n",
53+
" }\n",
54+
" }\n",
55+
" }\n",
4656
")\n",
4757
"import json\n",
4858
"print(json.loads(response.choices[0].message.content))"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.