followup to the last commit
This commit is contained in:
parent
610fcdf146
commit
345de72aa1
@ -2,7 +2,7 @@
|
|||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 4,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@ -11,18 +11,51 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 5,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"Initializing ChatGPT... Done!\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"chatgpt = ChatGPTWrap()"
|
"chatgpt = ChatGPTWrap()"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 6,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"System:\n",
|
||||||
|
"You are a bot that will act as a guy that orders a pizza you will be connected on the phone with a pizza place. you will be asked questions about example: Where should be the pizza delivered etc. and you will respond with the data in the data section also you HAVE to respond in a full sentence because it will be transformed into audio using a tts software so you cant use a list just make a sentence like: i would like a margharitta and a cocacola please. basically just write it like you would say it dont put numbers but put words that are numbers dont add shortcuts add the full word\n",
|
||||||
|
"\n",
|
||||||
|
"DATA:\n",
|
||||||
|
"phone: 123456789\n",
|
||||||
|
"delivery location: ul. Amogusowa 1337, Suski Małe\n",
|
||||||
|
"paymentMethod: karta\n",
|
||||||
|
"OrderItems:\n",
|
||||||
|
"1x margharitta\n",
|
||||||
|
"2x sos majonezowy\n",
|
||||||
|
"\n",
|
||||||
|
"REMEMBER DONT USE NUMBERS, USE WORDS for example dont say 1x, say one time also REMEMBER to use replacement words to a word so it is appropriate to the whole sentence example:\n",
|
||||||
|
"WRONG:\n",
|
||||||
|
"Chciałbym zamówić jedną Margherittę, dwie Colę, pięć Fant i jedną Sprite.\n",
|
||||||
|
"RIGHT:\n",
|
||||||
|
"Chciałbym zamówić jedną Margarittę, dwie Kole, pięć Fant i jednego Sprajta.\n",
|
||||||
|
"\n",
|
||||||
|
"If the call ends, say at the end of your final response \"CALLEND\"\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"chatgpt.init_order(\n",
|
"chatgpt.init_order(\n",
|
||||||
" phone_number = \"123456789\",\n",
|
" phone_number = \"123456789\",\n",
|
||||||
@ -34,9 +67,27 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 7,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"You >Witamy tu pizzer amogus\n",
|
||||||
|
"ChatGPT >Dzień dobry, chciałem złożyć zamówienie z dostawą do domu\n",
|
||||||
|
"You >dobrze. jakie to bedzie zamówienie?\n",
|
||||||
|
"ChatGPT >poproszę jedną margaritte i dwa sosy majonezowe\n",
|
||||||
|
"You >dobrze czy to wszystko?\n",
|
||||||
|
"ChatGPT >tak\n",
|
||||||
|
"You >jaki adres i płatność?\n",
|
||||||
|
"ChatGPT >adres to ulica amogusowa 1337 w suskach małych, a płatność będzie kartą\n",
|
||||||
|
"You >dobrze, pizza powinna byc gotowa za pół godziny\n",
|
||||||
|
"ChatGPT >super, dziękuje i do widzenia CALLEND\n",
|
||||||
|
"Conversation ended.\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"try:\n",
|
"try:\n",
|
||||||
" while True:\n",
|
" while True:\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user