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

feat: Restrict to ourselve gpt trigger #236

Closed
wants to merge 2 commits into from
Closed

Conversation

lmontier-pass
Copy link
Contributor

Select PR template in preview mode:

@@ -21,6 +21,10 @@ class ModelWithMetadata:
model_identifier: str


def fake_model(a: int, b: str) -> int:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/gpt-check

Copy link

github-actions bot commented Oct 10, 2024

Risk Level 5 - /home/runner/work/api-data/api-data/apps/fraud/compliance/api/src/pcpapillon/utils/model_handler.py

The function fake_model has the same issue as in the other file: it attempts to add an integer and a string, which will raise a TypeError. Ensure that both operands are of compatible types before performing the addition. Example fix:

return a + int(b)

Risk Level 5 - /home/runner/work/api-data/api-data/apps/fraud/compliance/api/src/pcpapillon/utils/constants.py

The function fake_model attempts to add an integer and a string, which will raise a TypeError. Ensure that both operands are of compatible types before performing the addition. Example fix:

return a + int(b)

🔍➕⚠️


Powered by Code Review GPT

@@ -1,6 +1,10 @@
from enum import Enum


def fake_model(a: int, b: str) -> int:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/gpt-check

def fake_model(a: int, b: str) -> int:
return a + b


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/gpt-check

@lmontier-pass lmontier-pass deleted the mob/test-review-3 branch October 10, 2024 15:38
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.

2 participants