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