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",
|
"cell_type": "code",
|
||||||
"execution_count": 1,
|
"execution_count": 10,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"{'text': 'Llama C++'}\n"
|
"{'text': 'Llama +'}\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"from openai import OpenAI\n",
|
"from openai import OpenAI\n",
|
||||||
"\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",
|
"response = client.chat.completions.create(\n",
|
||||||
" model=\"gpt-4-vision-preview\",\n",
|
" model=\"gpt-4-vision-preview\",\n",
|
||||||
" messages=[\n",
|
" messages=[\n",
|
||||||
|
|
Loading…
Add table
Reference in a new issue