From 835a642e6d53949ee3a1508736aaa916657abe19 Mon Sep 17 00:00:00 2001 From: Niel Teng Hu Date: Tue, 14 May 2024 20:45:16 -0400 Subject: [PATCH] upgrade to 0.0.30 #159 --- .../notebooks/cookbooks/quickstart.ipynb | 33 +++++++++++++++---- pyproject.toml | 2 +- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/docs/source/notebooks/cookbooks/quickstart.ipynb b/docs/source/notebooks/cookbooks/quickstart.ipynb index 7cb5fe1..13a8a53 100644 --- a/docs/source/notebooks/cookbooks/quickstart.ipynb +++ b/docs/source/notebooks/cookbooks/quickstart.ipynb @@ -23,7 +23,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "id": "e365394b-99c6-49bc-9115-37f25ea83072", "metadata": { "editable": true, @@ -48,7 +48,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "id": "d682d986-a3ac-4f4d-a967-a6eaccef0413", "metadata": { "editable": true, @@ -68,7 +68,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "id": "22710e02-f81f-4050-8c2c-01cd64e48f32", "metadata": { "editable": true, @@ -112,7 +112,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "id": "69c84261-b03b-4333-8cea-8315241c69a5", "metadata": { "editable": true, @@ -121,7 +121,26 @@ }, "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", @@ -129,7 +148,7 @@ " ]\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", @@ -444,7 +463,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.18" + "version": "3.12.3" } }, "nbformat": 4, diff --git a/pyproject.toml b/pyproject.toml index 4367b12..ae0561d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 '] readme = "README.md"