Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added type 'ThreadMessage' in the 5th block of code in step 06, 07 & 08 #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"source": [
"from openai.types.beta.threads.thread_message import ThreadMessage\n",
"\n",
"message = client.beta.threads.messages.create(\n",
"message: ThreadMessage = client.beta.threads.messages.create(\n",
" thread_id=thread.id,\n",
" role=\"user\",\n",
" content=\"I need to solve the equation `3x + 11 = 14`. Can you help me?\"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"source": [
"from openai.types.beta.threads.thread_message import ThreadMessage\n",
"\n",
"message = client.beta.threads.messages.create(\n",
"message: ThreadMessage = client.beta.threads.messages.create(\n",
" thread_id=thread.id,\n",
" role=\"user\",\n",
" content=\"When and which city Zia U. Khan was born?\"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"from openai.types.beta.threads.thread_message import ThreadMessage\n",
"\n",
"# First Request\n",
"message = client.beta.threads.messages.create(\n",
"message: ThreadMessage = client.beta.threads.messages.create(\n",
" thread_id=thread.id,\n",
" role=\"user\",\n",
" content=\"How is the weather in Los Angles?\"\n",
Expand Down