Muhammad Lufti Apriliyanto 79a20a8351 Update assistant.py
Add `langchain_openai` dependency to enable `ChatOpenAI` class to enable user to use model from OpenAI
2024-06-05 13:07:49 +08:00
...
2024-05-24 11:54:36 -04:00
2024-06-05 13:07:49 +08:00
...
2024-05-31 15:21:33 -04:00
2024-06-03 18:49:01 +02:00

Sample AI assistant

You need an OPENAI_API_KEY and a GOOGLE_API_KEY to run this code. Store them in a .env file in the root directory of the project, or set them as environment variables.

If you are running the code on Apple Silicon, run the following command:

$ brew install portaudio

Create a virtual environment, update pip, and install the required packages:

$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -U pip
$ pip install -r requirements.txt

Run the assistant:

$ python3 assistant.py
Description
镜像至GitHub:/svpino/alloy-voice-assistant.git
Readme 168 KiB
Languages
Python 100%