https://github.com/louis-e/gpt-order-terminal
Fully automated restaurant drive-thru order terminal using GPT
https://github.com/louis-e/gpt-order-terminal
gpt-3 openai python
Last synced: 2 months ago
JSON representation
Fully automated restaurant drive-thru order terminal using GPT
- Host: GitHub
- URL: https://github.com/louis-e/gpt-order-terminal
- Owner: louis-e
- License: mit
- Created: 2023-05-21T15:09:39.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-21T15:13:23.000Z (about 3 years ago)
- Last Synced: 2025-01-23T08:18:03.186Z (over 1 year ago)
- Topics: gpt-3, openai, python
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GPT Order Terminal
[](https://opensource.org/licenses/MIT)
[](https://www.python.org/downloads/release/python-380/)
[](https://beta.openai.com/)
This project is a proof of concept for a fully automated restaurant drive-thru order terminal using OpenAI's GPT language model. This code allows you to extract products from a customer order dialog based on a predefined list of valid items which can be ordered. Multilingual input is supported.
## Installation and Usage
1. Clone the repository:
```shell
git clone https://github.com/louis-e/gpt-order-terminal.git
```
2. Install the required dependencies:
```shell
pip install openai pvrecorder keyboard
```
3. Save your OpenAI API key in a file named `openai_api_key.txt`.
4. Edit the `items.txt` file accordingly to your needs.
5. Run the code:
```shell
python order_terminal.py
```
5. Follow the instructions to record the customer dialog. Press ENTER to stop recording.
## Example
```
SYSTEM: Recording customer dialog... Press ENTER to stop recording.
SYSTEM: Customer dialog recorded sucessfully. Transcribing...
SYSTEM: Customer dialog transcribed sucessfully: Hi there, I would like to order a cheeseburger and two cheesy fries as well as a coke. And for my daughter, let me see. One second. Ah, for my daughter I would like to order nachos, two chicken bites and a shake. That's it, thank you!
SYSTEM: Prompt prepared successfully. Sending API call...
SYSTEM: Processed API response successfully.
Processing order: Cheeseburger (1), Cheesy Fries (2), Coke (1), Nachos (1), Chicken Bites (2), Chocolate Shake (1)
```
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.