8000 docs: Update multimodal example · DrewWalkup/llama-cpp-python@79c649c · GitHub
[go: up one dir, main page]

Skip to content

Commit 79c649c

Browse files
committed
docs: Update multimodal example
1 parent bf315ee commit 79c649c

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

examples/notebooks/Multimodal.ipynb

Lines 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