-
Notifications
You must be signed in to change notification settings - Fork 58
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]: Winstonai new plagiarized system #266
base: master
Are you sure you want to change the base?
[FEAT]: Winstonai new plagiarized system #266
Conversation
@@ -1 +1,2 @@ | |||
WINSTON_AI_API_URL = "https://api.gowinston.ai/functions/v1" | |||
WINSTON_AI_PLAGIA_DETECTION_URL = "https://api.gowinston.ai/plagiarism/v2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current URL appears to be incorrect, resulting in a 404 error. Should be updated to :
https://api.gowinston.ai/v2/plagiarism
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, my fault
raise ProviderException(response.json()) | ||
|
||
plagiarism_score: int = result.get("score") | ||
sources = result.get("sources") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sources variable should be retrieved from original_response and not result.
sources = original_response.get("sources")
|
||
plagia_detection_candidate = PlagiaDetectionCandidate( | ||
url=source_url, | ||
plagia_score=source_score, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plagia_score should be a value between 0 and 1, we need to divide source_score/100
Whats up with this pull request ? @Daggx |
No description provided.