More details about this application prototype is available at:
Can ChatGPT unlock blockchain data for the masses? Early insights from building ChatWeb3
Create a .env
file and add a Flipside API key, which allows the application to query the Flipsidecrypto database. Flipside API key can be obtained here, and it has a free tier as well.
FLIPSIDE_API_KEY="XXX"
You will need to provide your OpenAI API key to use this application. An OpenAI API key can be obtained from Openai.
git clone https://github.com/inWeb3ai/chatWeb3.git
cd chatWeb3
poetry shell
poetry install
poetry run chatweb3
This command will run the ChatWeb3 gradio app.
To run tests:
make test
make integration_tests
General configuration can be done through config/config.yaml
To enable debug mode, create an environmental variable:
ENV="development"
This will set the log_level=logging.DEBUG
globally. You can tune the levels in config.yaml
.
To enable debug logging in any individual model, e.g., in logger_callback.py
, add the following:
logger = get_logger(
__name__, log_level=logging.DEBUG, log_to_console=True, log_to_file=True
)
Note that any logger parameters passed in here will overwrite the global debug level.
The log file is located under the chatweb3/logs
directory by default and can be configured in config.yaml