This would set up the LLMService class, responsible for sending requests to the LLM. Unit testing for LLMService constructor and LLMService.sendRequest() included.
IMPORTANT: I think (not 100% sure on this) you will have to run flutter pub get to update your versions of the dependencies I added (dart's standard http package).
Future Work
We may want to extend the reach of this class into returning specific data or catching errors as necessary, but for now it just makes the API call and returns the Future<Response>.
Proposed changes
This would set up the LLMService class, responsible for sending requests to the LLM. Unit testing for
LLMService
constructor andLLMService.sendRequest()
included.IMPORTANT: I think (not 100% sure on this) you will have to run
flutter pub get
to update your versions of the dependencies I added (dart's standardhttp
package).Future Work
We may want to extend the reach of this class into returning specific data or catching errors as necessary, but for now it just makes the API call and returns the
Future<Response>
.Reviews appreciated. :)