Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate AI for Predictive Analysis #7857

Merged
merged 10 commits into from
Dec 8, 2024
Merged

Integrate AI for Predictive Analysis #7857

merged 10 commits into from
Dec 8, 2024

Conversation

Maryna-511750
Copy link
Collaborator

GreenCity PR

Issue Link 📋

#7825

Summary Of Changes 🔥

Created a new service for sending requests to OpenAI. Additionally, implemented a controller and the "/ai/forecast" endpoint, which:
"Makes predictions about the environmental impact of the current user based on the analysis of their habits and habit duration."
This includes all necessary methods for the feature's functionality and unit tests to ensure proper behavior.

Added

  • Service for sending requests to OpenAI
  • Controller for handling AI-based forecasting requests
  • "/ai/forecast" endpoint for predicting the environmental impact based on user habits and habit duration
  • Unit tests for the service and controller

PR Checklist Forms

(to be filled out by PR submitter)

  • Code is up-to-date with the dev branch.
  • You've successfully built and run the tests locally.
  • There are new or updated unit tests validating the change.
  • JIRA/ Github Issue number & title in PR title (ISSUE-XXXX: Ticket title)
  • This template filled (above this section).
  • Sonar's report does not contain bugs, vulnerabilities, security issues, code smells ar duplication
  • NEED_REVIEW and READY_FOR_REVIEW labels are added.
  • All files reviewed before sending to reviewers

@Maryna-511750 Maryna-511750 merged commit e47ea89 into dev Dec 8, 2024
3 checks passed
@Maryna-511750 Maryna-511750 deleted the openAI branch December 8, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants