docs: Update multimodal example

This commit is contained in:
Andrei Betlen 2024-02-26 11:32:11 -05:00
parent dbaba3059d
commit bf315ee7a9

View file

@ -11,21 +11,21 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 10,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{'text': 'Llama C++'}\n"
"{'text': 'Llama +'}\n"
]
}
],
"source": [
"from openai import OpenAI\n",
"\n",
"client = OpenAI(base_url=\"http://100.64.159.73:8000/v1\", api_key=\"sk-1234\")\n",
"client = OpenAI(base_url=\"http://localhost:8000/v1\", api_key=\"llama.cpp\")\n",
"response = client.chat.completions.create(\n",
" model=\"gpt-4-vision-preview\",\n",
" messages=[\n",