8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf315ee commit 79c649cCopy full SHA for 79c649c
examples/notebooks/Multimodal.ipynb
@@ -11,14 +11,14 @@
11
},
12
{
13
"cell_type": "code",
14
- "execution_count": 10,
+ "execution_count": 13,
15
"metadata": {},
16
"outputs": [
17
18
"name": "stdout",
19
"output_type": "stream",
20
"text": [
21
- "{'text': 'Llama +'}\n"
+ "{'text': 'Llama C++'}\n"
22
]
23
}
24
],
@@ -42,7 +42,17 @@
42
" ],\n",
43
" }\n",
44
45
- " response_format={ \"type\": \"json_object\" }\n",
+ " 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
54
55
56
")\n",
57
"import json\n",
58
"print(json.loads(response.choices[0].message.content))"
0 commit comments