Open ellipsis-dev[bot] opened 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
chain-brain | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 11, 2023 10:56am |
chainbrain | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 11, 2023 10:56am |
Summary:
Issue: https://github.com/ChainBrainApp/ChainBrain/issues/10
This pull request introduces support for the Solana blockchain in our application. It adds a new file, SolanaExamples.py, which contains a list of examples structured as [question, query]. Additionally, it modifies the OpenAIService class in service.py to include a new method that handles Solana blockchain data source. This method uses the Bitquery API to fetch data, replacing the previous GraphService. The Bitquery API is called using a provided Python code, which has been integrated into the new method.
Implementation:
Create SolanaExamples.py
The diff shows that a new file named SolanaExamples.py was created in the correct directory as specified in the implementation plan. This file contains a list of examples structured as [question, query], which aligns with the requirements of the step. Therefore, the implementation correctly follows the plan for this step.Modify OpenAIService in service.py
The diff shows that a new method, request_solana_data, was added to the OpenAIService class in the service.py file. This method uses the Bitquery API to fetch data, as specified in the implementation plan. The provided Python code for calling the Bitquery API has been correctly integrated into this method. Although the diff does not show the replacement of 'YOUR API KEY' with an actual API key, this is likely handled in the environment and not shown in the diff for security reasons. Therefore, the implementation correctly follows the plan for this step.Something look wrong?: If this Pull Request doesn't contain the expected changes, add more information to #10. Then, add the
bitbuilder:create
label to try again. For more information, check the documentation.Generated with :heart: by www.bitbuilder.ai