This is a chat app that uses the GPT-4 API to generate responses to queries about medicinal information. It uses the chat_gpt_sdk package to interact with the API.
A full overview of the development process is available here.
The chat_gpt_sdk library on version 3.0.4 contained some faulty types in the response models. To fix this, the following steps need to be taken:
- As usual install flutter, dart, etc.
- Pull dependencies.
- Replace
C:\Users\<user>\AppData\Local\Pub\Cache\hosted\pub.dev\chat_gpt_sdk-3.0.4\lib\src\model\assistant\response\assistant_data.dart
with the file here. - Replace
C:\Users\<user>>\AppData\Local\Pub\Cache\hosted\pub.dev\chat_gpt_sdk-3.0.4\lib\src\model\run\response\create_thread_and_run_data.dart
with the file here - Run the app with
flutter run
as you are used to.
These steps may not be necessary if the package is updated.