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

Anudesh v1.0 #102

Merged
merged 276 commits into from
Sep 3, 2024
Merged
Changes from 1 commit
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
18e10b0
Merge pull request #10 from AI4Bharat/changes-in-user-serializers
ishvindersethi22 Jan 5, 2024
475e717
Integrating the LLM checks and LLM interactions
KunalTiwary Jan 8, 2024
e84ac29
added a JSON field to annotations for holding metadata
aditya-gitte Jan 8, 2024
fd9b341
added migration file
aditya-gitte Jan 8, 2024
1c31e80
added the function to compute metastats
aditya-gitte Jan 9, 2024
d1a7a04
reformated migration file with black
aditya-gitte Jan 9, 2024
bb47e81
Guest workspace updated
Shreya2803 Jan 10, 2024
a5b3094
Guest workspace field added
Shreya2803 Jan 10, 2024
1cce90d
User model and serializer updated
Shreya2803 Jan 10, 2024
c9eb7ff
User model and serializer updated with new fields
Shreya2803 Jan 10, 2024
0880781
integration modifications
KunalTiwary Jan 10, 2024
915bdb6
added user migrations
KunalTiwary Jan 10, 2024
3b00e63
Guest user password authentication
Shreya2803 Jan 17, 2024
a361e1e
Workspace serializer changes
Shreya2803 Jan 17, 2024
39428ad
Missing instance added
Shreya2803 Jan 17, 2024
ead2a20
Merge pull request #8 from AI4Bharat/instruction_driven_chat
ishvindersethi22 Jan 17, 2024
117757c
Merge pull request #14 from AI4Bharat/dev
kartikvirendrar Jan 18, 2024
ea7d8aa
remove password field from db
kartikvirendrar Jan 18, 2024
d87f06a
updated reset password api
kartikvirendrar Jan 18, 2024
b401388
updated reset password api
kartikvirendrar Jan 18, 2024
4c033ac
make migrations
kartikvirendrar Jan 18, 2024
1488871
make migrations
kartikvirendrar Jan 18, 2024
e3dec00
Merge pull request #15 from AI4Bharat/firebase-auth
KunalTiwary Jan 19, 2024
e36a038
removed unused modules
KunalTiwary Jan 19, 2024
e36bc3f
Merge pull request #16 from AI4Bharat/small_fix_module
ishvindersethi22 Jan 19, 2024
a82ce59
added fname, lname and photourl for google users
kartikvirendrar Jan 21, 2024
c71e203
added fname, lname and photourl for google users
kartikvirendrar Jan 21, 2024
801aade
overriden password field
KunalTiwary Jan 22, 2024
b773ff6
updated the migrations file to fix field already exists error
aditya-gitte Jan 22, 2024
99b0b18
black formatting
KunalTiwary Jan 22, 2024
f7110fc
Merge pull request #12 from AI4Bharat/meta_stats
ishvindersethi22 Jan 22, 2024
b00fd6c
Merge pull request #19 from AI4Bharat/dev
ishvindersethi22 Jan 22, 2024
5b6c7df
Merge pull request #13 from AI4Bharat/model_changes
ishvindersethi22 Jan 22, 2024
3103273
Merge pull request #20 from AI4Bharat/dev
ishvindersethi22 Jan 22, 2024
9aafe28
Merge pull request #17 from AI4Bharat/firebase-auth
ishvindersethi22 Jan 22, 2024
c16bbe9
Merge pull request #21 from AI4Bharat/dev
ishvindersethi22 Jan 22, 2024
5a5d7ae
Merge pull request #18 from AI4Bharat/update_password
ishvindersethi22 Jan 22, 2024
4c414f7
migrations aligned
KunalTiwary Jan 23, 2024
08ee283
Merge pull request #22 from AI4Bharat/migrations_dev
aparna-aa Jan 23, 2024
2458a20
added const password for guest user
kartikvirendrar Jan 23, 2024
ef6f64e
Merge pull request #23 from AI4Bharat/firebase-auth
KunalTiwary Jan 23, 2024
3574333
added password for normal user
kartikvirendrar Jan 23, 2024
c47fe9e
Merge pull request #25 from AI4Bharat/dev
kartikvirendrar Jan 23, 2024
70ebe34
Merge pull request #24 from AI4Bharat/firebase-auth
ishvindersethi22 Jan 29, 2024
8e1bf86
GET user List API
Shreya2803 Feb 2, 2024
4becd1c
Merge pull request #26 from AI4Bharat/user_api
KunalTiwary Feb 6, 2024
0f2ccc0
aligned annotations for IDC
KunalTiwary Feb 7, 2024
1be4210
added meta_stats for IDC
KunalTiwary Feb 7, 2024
35ad3b7
Merge pull request #27 from AI4Bharat/IDC_partial_update
ishvindersethi22 Feb 7, 2024
6407b66
modified the project download endpoint for IDC
KunalTiwary Feb 8, 2024
2a3c3a7
Merge pull request #28 from AI4Bharat/download_endpoint_for_IDC
ishvindersethi22 Feb 9, 2024
3ab6fab
modified the export new record as IDC project type
KunalTiwary Feb 9, 2024
27567ef
Merge pull request #29 from AI4Bharat/export_idc
ishvindersethi22 Feb 12, 2024
2d38e92
minor fix for model output
KunalTiwary Feb 12, 2024
802cdfd
Merge pull request #30 from AI4Bharat/minor_fix_idc_1
ishvindersethi22 Feb 12, 2024
1a8caf6
modified models
KunalTiwary Feb 12, 2024
c944128
Merge pull request #31 from AI4Bharat/minor_fix_idc_2
ishvindersethi22 Feb 12, 2024
5399786
Workspace password
Shreya2803 Feb 14, 2024
da6a10c
Workspace password
Shreya2803 Feb 14, 2024
ef95a9c
modified check_password
KunalTiwary Feb 15, 2024
7212588
Guest workspace authentication
Shreya2803 Feb 15, 2024
707263d
guest-Workspace
Shreya2803 Feb 15, 2024
b82123d
Workspace Model changes
Shreya2803 Feb 15, 2024
acb4f40
feat: ModelInteractionEvaluation project type
suyogkokaje Feb 19, 2024
61d09b4
style:reformatted the code using black
suyogkokaje Feb 19, 2024
f16708b
Merge branch 'dev' of https://github.com/AI4Bharat/Anudesh-Backend in…
KunalTiwary Feb 19, 2024
34ce896
added change password and add password for workspace
KunalTiwary Feb 19, 2024
8d9b8ed
added encryption
KunalTiwary Feb 19, 2024
4a152b4
added flower configs
aditya-gitte Feb 22, 2024
f3c3d20
added flower for Anudesh
aditya-gitte Feb 22, 2024
f86cbc7
added flower to requirements
aditya-gitte Feb 22, 2024
2b71760
updated production docker compose file
aditya-gitte Feb 22, 2024
b1a2d5e
black reformat
aditya-gitte Feb 22, 2024
7150036
added lock to schedule_project_reports_email
aditya-gitte Feb 23, 2024
2bdfa1d
added lock for view download_all_projects
aditya-gitte Feb 23, 2024
ecc8875
added lock for view send_user_analytics in workspace
aditya-gitte Feb 23, 2024
513e835
added lock for user_analytics
aditya-gitte Feb 23, 2024
439a7c6
Added locks for project_analytics
aditya-gitte Feb 23, 2024
7bc98c4
commented out testing code
aditya-gitte Feb 23, 2024
0dbf3ba
Merge pull request #37 from AI4Bharat/Celery-Locks
ishvindersethi22 Feb 24, 2024
74c5d36
Merge pull request #36 from AI4Bharat/flower
ishvindersethi22 Feb 24, 2024
ae4a474
Merge pull request #35 from AI4Bharat/change_workspace_password
ishvindersethi22 Feb 24, 2024
1d9be3e
Merge pull request #34 from AI4Bharat/latest_interaction_eval
ishvindersethi22 Feb 24, 2024
650868b
flower changes
KunalTiwary Feb 26, 2024
db75081
Merge pull request #38 from AI4Bharat/flower_changes
aparna-aa Feb 26, 2024
a4e88e3
feat: export_project_new_record adapted to new project type
suyogkokaje Feb 26, 2024
5d39c72
style:reformatted the code
suyogkokaje Feb 26, 2024
f70caee
fix:added missing .delay which was removed
suyogkokaje Feb 27, 2024
2ac4437
fix:prompt_output_pair_id issue fixed
suyogkokaje Feb 27, 2024
070c2f9
added an API endpoint for excluding the guest workspaces where the u…
ishangujarathi Feb 29, 2024
0c38d80
Merge pull request #39 from AI4Bharat/latest_interaction_eval
ishvindersethi22 Feb 29, 2024
4c179fd
addded black linting for the unauthenticated guest workspace endpoint
ishangujarathi Feb 29, 2024
1e745f4
Merge pull request #41 from AI4Bharat/feat/exclude_workspace
ishvindersethi22 Mar 1, 2024
6bc5ab3
added logging for chat
KunalTiwary Mar 7, 2024
ac38703
Merge pull request #42 from AI4Bharat/chat_log+output
ishvindersethi22 Mar 7, 2024
c85d85b
refactor:refactored unassign_task endpoints
suyogkokaje Mar 14, 2024
3856921
modified the auth api for guest user
KunalTiwary Mar 14, 2024
4bfd8a8
Merge pull request #45 from AI4Bharat/fix_guestworkspace
ishvindersethi22 Mar 14, 2024
1dcae3d
Merge pull request #44 from AI4Bharat/unassign_task_changes
aparna-aa Mar 15, 2024
65a6338
added the case when workspace has no password
KunalTiwary Mar 18, 2024
30737b9
Merge pull request #46 from AI4Bharat/minor_fix_wk_pass
ishvindersethi22 Mar 18, 2024
9a78b07
fixed the get_audio_projects problem
KunalTiwary Mar 19, 2024
39127b2
added missing function
KunalTiwary Mar 19, 2024
f2e64ac
Merge pull request #47 from AI4Bharat/audio_fix
ishvindersethi22 Mar 19, 2024
cd1684a
updated the changes for notification from backend side
Pursottam6003 Mar 23, 2024
6fbacc2
Merge branch 'master' into dev
Pursottam6003 Mar 23, 2024
cf54720
updated the noficiation update from backend
Pursottam6003 Mar 24, 2024
435a6b6
run the black formatting in file
Pursottam6003 Mar 24, 2024
deb3865
removed unusual changes that were done accidently by linter
Pursottam6003 Mar 24, 2024
64a43b8
liniting again with black version 23.1.0
Pursottam6003 Mar 24, 2024
33e47d4
feature for adding user back to the projects he was earlier part of a…
ishangujarathi Mar 28, 2024
ba103a5
modified both cases where interactions will be generated or not
KunalTiwary Mar 28, 2024
3a68bb3
Merge pull request #50 from AI4Bharat/IDC_modification_PU
ishvindersethi22 Mar 28, 2024
728de7d
updated the changes in backend till the changes from shoonya
Pursottam6003 Mar 30, 2024
b8237b9
updated the reformatting using black
Pursottam6003 Mar 31, 2024
09cce49
Merge branch 'dev' of https://github.com/AI4Bharat/Anudesh-Backend in…
Pursottam6003 Mar 31, 2024
3f03fa0
Merge pull request #49 from AI4Bharat/add/user
ishvindersethi22 Apr 1, 2024
7465f75
Merge pull request #48 from AI4Bharat/notification-fix-backend
ishvindersethi22 Apr 1, 2024
5a040d7
added a feature to remove the user from all workspaces as workspace m…
ishangujarathi Apr 1, 2024
196deba
Merge pull request #51 from AI4Bharat/remove/user
ishvindersethi22 Apr 1, 2024
e6dbc17
making instruction fields not nullable
KunalTiwary Apr 4, 2024
5d27748
Merge pull request #52 from AI4Bharat/instruction_fix
ishvindersethi22 Apr 4, 2024
a0c89fb
converting meta_info_model to model in get_llm_output()
KunalTiwary Apr 4, 2024
0096c8d
Merge pull request #53 from AI4Bharat/instruction_fix_2
ishvindersethi22 Apr 4, 2024
e3bcb4c
updated the code for celery queue tasks
Pursottam6003 Apr 10, 2024
d09bfdd
fix linting issue
Pursottam6003 Apr 10, 2024
ff3fccb
fixed key prompt error
kartikvirendrar Apr 18, 2024
65ca4a3
fixed key prompt error
kartikvirendrar Apr 18, 2024
8e519d9
Merge pull request #55 from AI4Bharat/status_change
aparna-aa Apr 19, 2024
80541ca
Merge pull request #54 from AI4Bharat/admin-panel-fix
ishvindersethi22 Apr 19, 2024
68e80e6
Update settings.py
ishvindersethi22 Apr 19, 2024
53498af
Merge pull request #56 from AI4Bharat/e-mail-changes
aparna-aa Apr 19, 2024
c09dbb5
Update settings.py
ishvindersethi22 Apr 23, 2024
cac5eb9
Merge pull request #57 from AI4Bharat/change-host
aparna-aa Apr 23, 2024
b82d79e
Update models.py
ishvindersethi22 Apr 23, 2024
62b6b36
Merge pull request #58 from AI4Bharat/anudesh-dev-change
ishvindersethi22 Apr 23, 2024
c10815e
added clear conversation option in partial update api
kartikvirendrar Apr 24, 2024
7ed0174
Merge pull request #59 from AI4Bharat/status_change
ishvindersethi22 Apr 24, 2024
a893478
change user invite link to dev.anudesh
kartikvirendrar Apr 24, 2024
6f3c603
Merge pull request #60 from AI4Bharat/status_change
ishvindersethi22 Apr 24, 2024
eaddf88
replicated the backend for as per shoonya changes
Pursottam6003 Apr 24, 2024
d8bebff
run the black formatter
Pursottam6003 Apr 24, 2024
00675a5
make llm annotation result format uniform
kartikvirendrar Apr 24, 2024
631396c
make llm annotation result format uniform
kartikvirendrar Apr 24, 2024
2e9213c
make llm annotation result format uniform
kartikvirendrar Apr 24, 2024
cc9c90c
removing user from workspace both as manager and member when marked i…
ishangujarathi Apr 25, 2024
c7d81b6
unapply the migrations
Pursottam6003 Apr 25, 2024
75d2906
Merge pull request #61 from AI4Bharat/status_change
ishvindersethi22 Apr 26, 2024
0760b39
Merge pull request #62 from AI4Bharat/remove_user_workspace
ishvindersethi22 Apr 26, 2024
7c92997
Merge branch 'dev' of https://github.com/AI4Bharat/Anudesh-Backend in…
Pursottam6003 Apr 26, 2024
c3f5c78
apply the migrations again
Pursottam6003 Apr 26, 2024
8972c9c
minor formatting in file using black
Pursottam6003 Apr 26, 2024
dadcecd
Merge pull request #63 from AI4Bharat/decentralized_approvals
ishvindersethi22 Apr 29, 2024
4162f56
updated the email formatting for invites
Pursottam6003 May 1, 2024
85cfc6e
minor fix for get annotations api
kartikvirendrar May 2, 2024
61c550e
fixed the bug regarding active status when user is marked as inactive
ishangujarathi May 2, 2024
8336a8f
Merge pull request #64 from AI4Bharat/status_change
ishvindersethi22 May 2, 2024
a7e32e2
added a feature to clear conversation
KunalTiwary May 6, 2024
53e4334
added formatting for data returned from llm
KunalTiwary May 7, 2024
66c67bc
Merge pull request #67 from AI4Bharat/interaction_json_fix
ishvindersethi22 May 7, 2024
2cd5133
added proper error responses for authentication
kartikvirendrar May 7, 2024
7546df6
raised proper errors for authentication errors
kartikvirendrar May 8, 2024
f46cf89
added a feature to remove user from frozen list when user is marked a…
ishangujarathi May 8, 2024
fc6fc8b
Merge pull request #66 from AI4Bharat/clear_conversation
aparna-aa May 9, 2024
66e3ddd
Merge pull request #68 from AI4Bharat/dev1
aparna-aa May 9, 2024
69877a1
Merge pull request #65 from AI4Bharat/active_status/bug_fix
aparna-aa May 9, 2024
cb7b63a
handled extra cases for partial_update
KunalTiwary May 10, 2024
5c41fd6
Merge branch 'dev' into update_fix
KunalTiwary May 10, 2024
188f5fa
updated the changes for the send email
Pursottam6003 May 12, 2024
6b86246
Merge branch 'dev' of https://github.com/AI4Bharat/Anudesh-Backend in…
Pursottam6003 May 12, 2024
b9fef8a
updated the changes with black linting
Pursottam6003 May 12, 2024
cb59ad5
Merge pull request #70 from AI4Bharat/update_fix
aparna-aa May 13, 2024
7eb1e9f
fixed please login again for fetch projects api issue
kartikvirendrar May 14, 2024
99529a4
Merge pull request #72 from AI4Bharat/dev1
KunalTiwary May 15, 2024
e5eee00
added changes for reports
KunalTiwary May 16, 2024
565487e
modified recent_tasks
KunalTiwary May 17, 2024
d323d19
Merge pull request #74 from AI4Bharat/recent_task_fix
aparna-aa May 21, 2024
597173f
Merge pull request #73 from AI4Bharat/schedule_report_fix
aparna-aa May 21, 2024
610a733
Merge pull request #71 from AI4Bharat/invite_email_formatting
aparna-aa May 21, 2024
f4d48ef
Merge pull request #69 from AI4Bharat/user_marked_active
aparna-aa May 21, 2024
8ac9ec0
fixed swagger issue
KunalTiwary May 21, 2024
ed5437d
fixed the swagger issue
KunalTiwary May 21, 2024
791076a
Merge pull request #75 from AI4Bharat/small_fix_swagger
aparna-aa May 21, 2024
e55a8b1
Dataset downlaod functionality changed
akshaya224 May 28, 2024
9c087a2
reformatted the code using black
akshaya224 May 29, 2024
0f27121
dataset download json
akshaya224 May 29, 2024
e947611
dataset download json
akshaya224 May 29, 2024
2a42f66
dataset/views.py reformatted
akshaya224 May 29, 2024
cf3f1bf
added anudesh relevant project types
ishangujarathi May 30, 2024
c6425cf
added guest workspace modification
KunalTiwary Jun 12, 2024
faa426b
Merge pull request #81 from AI4Bharat/guest_small_fix
ishvindersethi22 Jun 13, 2024
0cb793a
Merge pull request #80 from AI4Bharat/cumulative_tasks_count/endpoint
ishvindersethi22 Jun 13, 2024
d65fe26
Merge pull request #79 from AI4Bharat/backend-trial
ishvindersethi22 Jun 13, 2024
b7a2612
added proper error messages
KunalTiwary Jun 14, 2024
03504e1
Merge pull request #82 from AI4Bharat/minor_fix_guest_workspace
aparna-aa Jun 18, 2024
8105bb0
fixed minor authentication issue
kartikvirendrar Jun 19, 2024
b111c8e
Merge pull request #83 from AI4Bharat/delete
aparna-aa Jun 20, 2024
83c9480
added project_password as a new field into project model,added approp…
ishangujarathi Jun 25, 2024
fcd46cd
added black linters for migration files
ishangujarathi Jun 25, 2024
de0e7d5
added some additional checks along with appropriate try catch blocks …
ishangujarathi Jun 25, 2024
b1e5892
added fix in download and export
KunalTiwary Jun 25, 2024
baf1250
extra_fixes
KunalTiwary Jun 27, 2024
e25ed15
added a new field max_pull_count_per_user into the project models.py …
ishangujarathi Jun 28, 2024
ab39f2a
Merge pull request #85 from AI4Bharat/MOE_flow_fix
ishvindersethi22 Jun 28, 2024
b775d6b
Merge branch 'dev' into project_password
KunalTiwary Jul 1, 2024
78b66ad
Merge pull request #84 from AI4Bharat/project_password
KunalTiwary Jul 1, 2024
c95d616
Merge branch 'dev' into max_pull_count
KunalTiwary Jul 1, 2024
eaf6b40
Merge pull request #86 from AI4Bharat/max_pull_count
KunalTiwary Jul 1, 2024
42bc9a1
added fix for pull new tasks
KunalTiwary Jul 1, 2024
a97a24d
added black workspace password feature
KunalTiwary Jul 1, 2024
74a5c65
added max_pull_count_per_user in serialiser
KunalTiwary Jul 1, 2024
4e00545
minor-fix
KunalTiwary Jul 1, 2024
3241cf4
Merge pull request #87 from AI4Bharat/impFix
ishvindersethi22 Jul 2, 2024
09af163
added guest_workspace_filter and guest_view
KunalTiwary Jul 2, 2024
0ab2768
Merge pull request #89 from AI4Bharat/minor_change_pList
ishvindersethi22 Jul 3, 2024
6d6c2df
Update views.py
ishvindersethi22 Jul 3, 2024
a93f0cb
Update views.py
ishvindersethi22 Jul 3, 2024
11d717c
Update views.py
ishvindersethi22 Jul 3, 2024
12920b8
Update views.py
ishvindersethi22 Jul 3, 2024
da339bb
Merge pull request #90 from AI4Bharat/ishvindersethi22-patch-1
aparna-aa Jul 3, 2024
848d2c3
Revert "Update views.py"
ishvindersethi22 Jul 3, 2024
b65d4f1
Merge pull request #91 from AI4Bharat/revert-90-ishvindersethi22-patch-1
ishvindersethi22 Jul 3, 2024
086b239
Revert "Revert "Update views.py""
ishvindersethi22 Jul 3, 2024
7684971
Update views.py
ishvindersethi22 Jul 3, 2024
765eab2
Update views.py
ishvindersethi22 Jul 3, 2024
0fef4df
Update views.py
ishvindersethi22 Jul 3, 2024
c8197f7
Update views.py
ishvindersethi22 Jul 3, 2024
138bb5b
Update views.py
ishvindersethi22 Jul 3, 2024
6726062
Update views.py
ishvindersethi22 Jul 3, 2024
e442e57
Update views.py
ishvindersethi22 Jul 3, 2024
247cd4b
Merge pull request #92 from AI4Bharat/revert-91-revert-90-ishvinderse…
ishvindersethi22 Jul 3, 2024
98e449f
added Avg_Word_Count_Per_Prompt and Avg_Word_Count_Per_Output in meta…
KunalTiwary Jul 4, 2024
8712935
black formatting
KunalTiwary Jul 5, 2024
f9ee9a3
Merge pull request #94 from AI4Bharat/dev
kartikvirendrar Jul 6, 2024
36069fd
Change invite url to anudesh.ai4bharat.org
kartikvirendrar Jul 6, 2024
ad93f37
Merge pull request #95 from AI4Bharat/status_change
ishvindersethi22 Jul 6, 2024
fb56216
added changes for guest_auth
KunalTiwary Jul 8, 2024
d26bf87
Merge pull request #96 from AI4Bharat/minor_fix_wkpassword
ishvindersethi22 Jul 8, 2024
955ccdc
added response for empty prompt or outpur
KunalTiwary Jul 16, 2024
03fa109
minor change
KunalTiwary Jul 16, 2024
f584af7
modified message
KunalTiwary Jul 16, 2024
fbf1801
added exceptions
KunalTiwary Jul 24, 2024
6e03c54
Merge pull request #99 from AI4Bharat/LLM_exceptions
ishvindersethi22 Jul 24, 2024
6e16fd4
added changes for MOE in export and download
KunalTiwary Jul 25, 2024
b64fa4f
Merge pull request #100 from AI4Bharat/export_fix_MOE
aparna-aa Aug 1, 2024
c94bafa
Merge pull request #97 from AI4Bharat/minor_fix_empty_prompt
aparna-aa Aug 1, 2024
08f88cc
Merge pull request #93 from AI4Bharat/stat_fix
aparna-aa Aug 1, 2024
e4bc7e3
analytics fixes
sagarika-padmanaban Aug 20, 2024
c698ba2
formatted with black
sagarika-padmanaban Aug 21, 2024
4f027c2
Merge pull request #101 from AI4Bharat/dev-s
ishvindersethi22 Aug 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
modified message
  • Loading branch information
KunalTiwary committed Jul 16, 2024
commit f584af7932b23d9acd58340b11f9666868596658
16 changes: 15 additions & 1 deletion backend/tasks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,9 @@ def partial_update(self, request, pk=None):
annotation_obj.task.project_id.metadata_json,
)
if output_result == -1:
ret_dict = {"message": "Either prompt or output is None."}
ret_dict = {
"message": "Please make sure you have entered a prompt and the system has responded with an answer"
}
ret_status = status.HTTP_403_FORBIDDEN
return Response(ret_dict, status=ret_status)
# store the result of all checks as well
Expand Down Expand Up @@ -1675,6 +1677,12 @@ def partial_update(self, request, pk=None):
annotation_obj,
annotation_obj.task.project_id.metadata_json,
)
if output_result == -1:
ret_dict = {
"message": "Please make sure you have entered a prompt and the system has responded with an answer"
}
ret_status = status.HTTP_403_FORBIDDEN
return Response(ret_dict, status=ret_status)
# store the result of all checks as well
annotation_obj.result.append(
{
Expand Down Expand Up @@ -1885,6 +1893,12 @@ def partial_update(self, request, pk=None):
annotation_obj,
annotation_obj.task.project_id.metadata_json,
)
if output_result == -1:
ret_dict = {
"message": "Please make sure you have entered a prompt and the system has responded with an answer"
}
ret_status = status.HTTP_403_FORBIDDEN
return Response(ret_dict, status=ret_status)
# store the result of all checks as well
annotation_obj.result.append(
{
Expand Down
Loading