You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -70,9 +70,9 @@ Let's change the script to take input from a client application and generate a s
70
70
71
71
1. Remove the last line of the script that prints a response.
72
72
73
-
1. Now define a `get_chat_response` function that takes messages and context, generates a system message using a prompt template, and calls a model. Add this code to your **chat.py** file:
73
+
1. Now define a `get_chat_response` function that takes messages and context, generates a system message using a prompt template, and calls a model. Add this code to your existing **chat.py** file:
@@ -81,9 +81,9 @@ Let's change the script to take input from a client application and generate a s
81
81
82
82
1. Now simulate passing information from a frontend application to this function. Add the following code to the end of your **chat.py** file. Feel free to play with the message and add your own name.
0 commit comments