Skip to content

Commit

Permalink
upgrade to 0.0.30 #159
Browse files Browse the repository at this point in the history
  • Loading branch information
TengHu authored May 15, 2024
1 parent cbe5d05 commit 835a642
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
33 changes: 26 additions & 7 deletions docs/source/notebooks/cookbooks/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "e365394b-99c6-49bc-9115-37f25ea83072",
"metadata": {
"editable": true,
Expand All @@ -48,7 +48,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "d682d986-a3ac-4f4d-a967-a6eaccef0413",
"metadata": {
"editable": true,
Expand All @@ -68,7 +68,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"id": "22710e02-f81f-4050-8c2c-01cd64e48f32",
"metadata": {
"editable": true,
Expand Down Expand Up @@ -112,7 +112,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"id": "69c84261-b03b-4333-8cea-8315241c69a5",
"metadata": {
"editable": true,
Expand All @@ -121,15 +121,34 @@
},
"tags": []
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Getting current weather\n",
"Getting current weather\n"
]
},
{
"data": {
"text/plain": [
"ChatCompletion(id='chatcmpl-9OwzBrfFivrupUVUz1wQIVjhkmtRu', choices=[Choice(finish_reason='stop', index=0, logprobs=None, message=ChatCompletionMessage(content=\"The current weather in San Francisco is 72°F. Unfortunately, I'm unable to retrieve the current weather for Beijing at the moment. Would you like information on anything else?\", role='assistant', function_call=None, tool_calls=None))], created=1715733641, model='gpt-4o-2024-05-13', object='chat.completion', system_fingerprint='fp_729ea513f7', usage=CompletionUsage(completion_tokens=35, prompt_tokens=175, total_tokens=210))"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"messages = [\n",
" {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n",
" {\"role\": \"user\", \"content\": \"what's the weather in San Francisco and Beijing ?\"}\n",
" ]\n",
"\n",
"response = openai_client.create(\n",
" model=\"gpt-3.5-turbo\",\n",
" model=\"gpt-4o\",\n",
" messages=messages,\n",
" actions = [get_current_weather],\n",
" stream=False, \n",
Expand Down Expand Up @@ -444,7 +463,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "actionweaver"
version = "0.0.29"
version = "0.0.30"
description = "An Application Framework for Building LLM Agents"
authors = ['Teng "Niel" Hu <[email protected]>']
readme = "README.md"
Expand Down

0 comments on commit 835a642

Please sign in to comment.