docs: Update multimodal example
This commit is contained in:
parent
bf315ee7a9
commit
79c649c2d1
1 changed files with 13 additions and 3 deletions
|
@ -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"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -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))"
|
||||
|
|
Loading…
Reference in a new issue