Skip to content

Commit

Permalink
Update the examples with an example from HF.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-rptless committed Sep 17, 2024
1 parent a33c79d commit 89b22f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/client.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,19 @@
"print(response.choices[0].message.content)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f996b121",
"metadata": {},
"outputs": [],
"source": [
"client3 = ai.Client()\n",
"hf_model = \"huggingface:mistralai/Mistral-7B-Instruct-v0.3\"\n",
"response = client3.chat.completions.create(model=hf_model, messages=messages)\n",
"print(response.choices[0].message.content)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 89b22f7

Please sign in to comment.