Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
rishsriv committed Jan 23, 2025
1 parent 9f3981a commit efec659
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@
" seed=0,\n",
" response_format=ResponseFormat,\n",
")\n",
"print(\"Gemini 2.0 Flash\")\n",
"print(\"o1\")\n",
"pretty_print_llm_response(resp)"
]
},
Expand Down Expand Up @@ -523,6 +523,39 @@
"pretty_print_llm_response(resp)"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"deepseek-chat\n",
"{ 'content': 'SELECT COUNT(*) FROM orders;',\n",
" 'cost_in_cents': '2.19e-04',\n",
" 'input_tokens': 364,\n",
" 'model': 'deepseek-chat',\n",
" 'output_tokens': 6,\n",
" 'output_tokens_details': None,\n",
" 'time': 1.34}\n"
]
}
],
"source": [
"resp = await chat_async(\n",
" model=\"deepseek-chat\",\n",
" messages=messages,\n",
" max_completion_tokens=4000,\n",
" temperature=0.0,\n",
" seed=0,\n",
" response_format=ResponseFormat,\n",
")\n",
"print(\"deepseek-chat\")\n",
"pretty_print_llm_response(resp)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit efec659

Please sign in to comment.