Skip to content
Closed
Changes from all commits
Commits
Show all changes
1643 commits
Select commit Hold shift + click to select a range
229aa83
Enhance OpenAI response handling with function calling support and im…
themohitbharti Jan 28, 2026
aa324de
Add file creation and upload functionality for PDF generation in resp…
themohitbharti Jan 28, 2026
bb49f2d
Refactor logging and documentation in media creation functions to imp…
themohitbharti Jan 28, 2026
c9f2100
Remove debug print statements from OpenAI response handling and tool …
themohitbharti Jan 28, 2026
f49f037
Adding openai functionality for objectives
KUNALTEMPEST Jan 28, 2026
3e829ca
Merge pull request #194 from darshilbabel/hotfix/obj_fixes
KUNALTEMPEST Jan 28, 2026
48cfcbc
Implement fallback for action list generation when combiner bot fails…
VishnuKrishnathu Jan 28, 2026
fbc24ba
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
VishnuKrishnathu Jan 28, 2026
d4ae5cf
Merge pull request #195 from darshilbabel/hotfix/parallel-action-gene…
KUNALTEMPEST Jan 28, 2026
3370702
Adding company bot filter on media admin panel
KUNALTEMPEST Jan 29, 2026
d10e1fa
Merge pull request #196 from darshilbabel/hotfix/obj_fixes
KUNALTEMPEST Jan 29, 2026
06acc1e
openai cost calculation
KUNALTEMPEST Jan 29, 2026
a0efaaf
openai cost calculation
KUNALTEMPEST Jan 29, 2026
5ac4218
Solved dependency issues among packages
KUNALTEMPEST Jan 30, 2026
c7db61a
Merge pull request #197 from darshilbabel/hotfix/obj_fixes
KUNALTEMPEST Jan 30, 2026
54f5c0c
testing count
KUNALTEMPEST Jan 30, 2026
2635909
testing count
KUNALTEMPEST Jan 30, 2026
4994663
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
KUNALTEMPEST Jan 31, 2026
b06aee2
Add post-processing functionality for Story model and update templates
themohitbharti Feb 2, 2026
a3fe0e0
Updated README.md and scrips
KUNALTEMPEST Feb 4, 2026
159c80c
Merge pull request #199 from darshilbabel/hotfix/obj_fixes
KUNALTEMPEST Feb 4, 2026
7bc91ef
Add Python 3.12 support and create project configuration files
VishnuKrishnathu Feb 4, 2026
a91feec
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
VishnuKrishnathu Feb 4, 2026
ece39b7
Update dependencies in pyproject.toml and requirement.txt
VishnuKrishnathu Feb 4, 2026
6434e70
Update README.md to enhance setup instructions
VishnuKrishnathu Feb 4, 2026
6bcf07e
Refactor imports and enhance post-processing functionality with itera…
themohitbharti Feb 5, 2026
13be8a4
Enhance challenge fetching and output handling in IterativeChallengeP…
themohitbharti Feb 5, 2026
05fda9d
Merge pull request #200 from darshilbabel/features/dep-manager
KUNALTEMPEST Feb 5, 2026
d0262e2
Added bot vernacular to export json and made export more flexible so …
KUNALTEMPEST Feb 5, 2026
c7ba5c9
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
KUNALTEMPEST Feb 5, 2026
8d1e8f2
Merge pull request #201 from darshilbabel/hotfix/obj_fixes
KUNALTEMPEST Feb 5, 2026
d523226
Fix for import issue
KUNALTEMPEST Feb 5, 2026
45ea57d
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
KUNALTEMPEST Feb 5, 2026
f127989
Merge pull request #202 from darshilbabel/hotfix/obj_fixes
KUNALTEMPEST Feb 5, 2026
d7080b9
Improve error handling and user feedback in processing scripts and te…
themohitbharti Feb 5, 2026
8cd0e91
Update help text for filter threshold input to clarify aggressive fil…
themohitbharti Feb 6, 2026
69ad771
taking latest pull and solving merge conflict
KUNALTEMPEST Feb 7, 2026
417d999
Remove unused argument documentation from processing functions and cl…
themohitbharti Feb 7, 2026
555da80
Merge branch 'hotfix/story_challenges' of https://github.com/darshilb…
themohitbharti Feb 7, 2026
e7ce304
Add unique challenges processing form and dynamic configuration
themohitbharti Feb 8, 2026
611358d
Add asynchronous task for unique challenges processing and update UI …
themohitbharti Feb 9, 2026
85ae6a5
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
themohitbharti Feb 9, 2026
65f2a47
Fix typo in success message and enhance UI reset logic for task compl…
themohitbharti Feb 9, 2026
c81a2aa
Refactor unique challenges task and update post-processing UI alerts
themohitbharti Feb 9, 2026
b91f161
Merge pull request #193 from darshilbabel/hotfix/function-call
VishnuKrishnathu Feb 10, 2026
8d546db
Merge pull request #198 from darshilbabel/hotfix/story_challenges
VishnuKrishnathu Feb 10, 2026
b18099b
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
VishnuKrishnathu Feb 10, 2026
9761e03
Fixed pdf layout and message being send to fe on function call
KUNALTEMPEST Feb 10, 2026
ee5b2b8
Merge pull request #203 from darshilbabel/hotfix/function-call
KUNALTEMPEST Feb 10, 2026
040e985
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
VishnuKrishnathu Feb 12, 2026
09751b7
Add unique solutions processing functionality and update related forms
themohitbharti Feb 12, 2026
8dadd4c
Refactor LLM message building and error handling in solution processing
themohitbharti Feb 12, 2026
2785b3a
Merge pull request #204 from darshilbabel/feature/story_solutions
KUNALTEMPEST Feb 13, 2026
fe5c80f
Update Django version to 5.2.0 and add django-querycount dependency; …
VishnuKrishnathu Feb 13, 2026
e447a65
Add S3 URL handling and file retrieval methods to storage handlers
VishnuKrishnathu Feb 16, 2026
b74a645
Remove unused user type choices from CreateStoryChoices enum in enums.py
VishnuKrishnathu Feb 17, 2026
632d3b2
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
VishnuKrishnathu Feb 17, 2026
8093d2c
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
VishnuKrishnathu Feb 17, 2026
d48fe0e
Merge branch 'features/image-configs-v2' of https://github.com/darshi…
VishnuKrishnathu Feb 17, 2026
d67f637
Adding documentation related work
KUNALTEMPEST Feb 17, 2026
1c283c0
Merge pull request #205 from darshilbabel/features/image-configs-v2
VishnuKrishnathu Feb 17, 2026
d5294db
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
KUNALTEMPEST Feb 17, 2026
047d673
Merge pull request #206 from darshilbabel/hotfix/docs
KUNALTEMPEST Feb 17, 2026
58a1664
Adding mkdocs package to pyproject.toml
KUNALTEMPEST Feb 17, 2026
22d1075
Merge pull request #207 from darshilbabel/hotfix/docs
KUNALTEMPEST Feb 17, 2026
392932c
Adding mkdocs package to pyproject.toml
KUNALTEMPEST Feb 17, 2026
43f5a7e
Merge pull request #208 from darshilbabel/hotfix/docs
KUNALTEMPEST Feb 17, 2026
b4552ec
Fixing script post processing and solution scrip
KUNALTEMPEST Feb 17, 2026
3629d84
Merge pull request #209 from darshilbabel/hotfix/docs
KUNALTEMPEST Feb 17, 2026
ce3b248
Enhance story PDF generation to support session language
VishnuKrishnathu Feb 17, 2026
bfcf39e
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
VishnuKrishnathu Feb 18, 2026
c5b7417
Update Python version requirements and dependencies
VishnuKrishnathu Feb 18, 2026
e4d92c0
Remove error handling for missing state machine in ChatOrchestrator
VishnuKrishnathu Feb 18, 2026
61f50f2
Fix regex patterns in media_api_views.py for correct document type ma…
VishnuKrishnathu Feb 18, 2026
bdc4359
Correct regex patterns in media_api_views.py for document type matching
VishnuKrishnathu Feb 18, 2026
623f474
Merge pull request #210 from darshilbabel/features/image-configs-v2
VishnuKrishnathu Feb 18, 2026
2a060d2
Added Sarvam and Custom llm Translation and Transliteration
KUNALTEMPEST Feb 21, 2026
58d9200
fix (backward compatibility)
KUNALTEMPEST Feb 21, 2026
6d42c37
removing unused import
KUNALTEMPEST Feb 21, 2026
33e64fb
Merge pull request #211 from darshilbabel/hotfix/docs
KUNALTEMPEST Feb 23, 2026
0e39cb0
fix: improve page break handling in PDF styling
themohitbharti Feb 24, 2026
4d7e126
Domain logic
KUNALTEMPEST Feb 24, 2026
2094998
Domain logic fix
KUNALTEMPEST Feb 24, 2026
376e8d2
Sso --> story fix (now project will save task and use task correctly)
KUNALTEMPEST Feb 25, 2026
1e3541f
added source for project and program
KUNALTEMPEST Feb 26, 2026
2a4f9a4
Enhance second page action steps handling and Gotenberg PDF generation
themohitbharti Feb 26, 2026
b95b82c
Merge branch 'hotfix/docs' of https://github.com/darshilbabel/shiksha…
themohitbharti Feb 26, 2026
0090e49
Merge pull request #212 from darshilbabel/hotfix/pdf-format
KUNALTEMPEST Feb 26, 2026
126caa8
fixing key name in api call
KUNALTEMPEST Feb 26, 2026
a0f086d
fix: ascii fix so that other languages are readable
KUNALTEMPEST Feb 26, 2026
9380ec2
Exposing sarvam STT model through admin panel
KUNALTEMPEST Feb 26, 2026
de05d14
Refactor Impact section HTML handling and adjust placement for overfl…
themohitbharti Feb 26, 2026
af3945c
Merge branch 'hotfix/docs' of https://github.com/darshilbabel/shiksha…
themohitbharti Feb 26, 2026
d2469f6
removed comments
themohitbharti Feb 26, 2026
cd5fcd7
Merge pull request #213 from darshilbabel/hotfix/pdf-format
KUNALTEMPEST Feb 26, 2026
42857d9
Merge pull request #214 from darshilbabel/hotfix/docs
KUNALTEMPEST Feb 26, 2026
1913ba8
fixing report issue where reports were created when there was no chal…
KUNALTEMPEST Feb 26, 2026
13e6937
Merge pull request #215 from darshilbabel/hotfix/docs
KUNALTEMPEST Feb 26, 2026
b876cb6
fixing report issue where reports were created when there was no chal…
KUNALTEMPEST Feb 26, 2026
ae55de6
Merge pull request #216 from darshilbabel/hotfix/docs
KUNALTEMPEST Feb 26, 2026
7690d7a
feat: add SECOND_PAGE_TOTAL_CHAR_LIMIT for improved PDF formatting
themohitbharti Feb 26, 2026
b43773f
fix: update SECOND_PAGE_TOTAL_CHAR_LIMIT and adjust CSS padding and m…
themohitbharti Feb 26, 2026
ab0083b
Merge pull request #217 from darshilbabel/hotfix/pdf-format
KUNALTEMPEST Feb 26, 2026
0bea606
Merge pull request #218 from darshilbabel/hotfix/docs
KUNALTEMPEST Feb 26, 2026
cce31e9
fix: update SECOND_PAGE_TOTAL_CHAR_LIMIT to correct value for PDF for…
themohitbharti Feb 26, 2026
d4072b8
Merge pull request #219 from darshilbabel/hotfix/pdf-format
KUNALTEMPEST Feb 26, 2026
d732b63
Exposing variables in story vernacular
KUNALTEMPEST Feb 26, 2026
203f129
Merge pull request #220 from darshilbabel/hotfix/docs
KUNALTEMPEST Feb 26, 2026
3518239
worked on the cront task function handle_village_ingestion_cron()
Anujkumar7 Mar 2, 2026
85295f9
fixed the village mapping
Anujkumar7 Mar 3, 2026
6ab130d
Moved mitra guided and guest discussion flow to common websocket, als…
KUNALTEMPEST Mar 4, 2026
3724146
Merge pull request #221 from darshilbabel/fixes/crontask
KUNALTEMPEST Mar 5, 2026
2df9468
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
KUNALTEMPEST Mar 5, 2026
7ddaf4b
Merge pull request #222 from darshilbabel/hotfix/flow_fix
KUNALTEMPEST Mar 5, 2026
4751a2e
Handled the storing the S3 voice to text logic
Anujkumar7 Mar 7, 2026
ad7bb9c
New migration file
Anujkumar7 Mar 7, 2026
32bda46
Removed comments and migrations file
Anujkumar7 Mar 7, 2026
326bfc1
Merge pull request #223 from darshilbabel/fixes/crontask
KUNALTEMPEST Mar 8, 2026
3fb52b3
added database migration in the process to prepare db command
VishnuKrishnathu Mar 8, 2026
09e4dbe
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
VishnuKrishnathu Mar 8, 2026
ad4e57a
Enhanced prepare_db command to include database migration step and up…
VishnuKrishnathu Mar 8, 2026
d36c801
Add category counts to unique challenges processing and related views
themohitbharti Mar 10, 2026
150c72c
Added configuration for all providers across all translation services…
KUNALTEMPEST Mar 10, 2026
75e90f5
Add FlowAdminForm for language selection and validation; update sessi…
VishnuKrishnathu Mar 11, 2026
97da9d4
revert back
VishnuKrishnathu Mar 11, 2026
c8a9fd9
Merge branch 'hotfix/flow_fix' of https://github.com/darshilbabel/shi…
VishnuKrishnathu Mar 11, 2026
e032239
Normalize challenge counts across batches to match expected totals
themohitbharti Mar 11, 2026
0428a03
Enhance solution processing with category counts and refactor related…
themohitbharti Mar 11, 2026
604a950
Merge pull request #225 from darshilbabel/fixes/sotring-flow-to-chat-…
VishnuKrishnathu Mar 11, 2026
d7c728b
improved Story Error handling and UI text messages. Also improved ope…
KUNALTEMPEST Mar 11, 2026
8395b48
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
KUNALTEMPEST Mar 11, 2026
0805d64
Merge pull request #227 from darshilbabel/hotfix/flow_fix
KUNALTEMPEST Mar 11, 2026
357a10f
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
KUNALTEMPEST Mar 11, 2026
dbd37e8
Refactor user message construction in challenges and solutions script…
themohitbharti Mar 11, 2026
c867203
Merge pull request #226 from darshilbabel/feature/unique-script-categ…
KUNALTEMPEST Mar 11, 2026
aa42029
Story Generation V1 changes now passes error type in api response
KUNALTEMPEST Mar 13, 2026
598930a
Tool call fix
KUNALTEMPEST Mar 13, 2026
d7f20c9
Refactor logging in story utilities and views to use Django's logging…
VishnuKrishnathu Mar 13, 2026
94143c7
Story V2 Fix for exposing error code and type in api response
KUNALTEMPEST Mar 13, 2026
e3f9197
Add generic export feature to export all fields via admin panel (curr…
KUNALTEMPEST Mar 13, 2026
06b2296
Merge pull request #229 from darshilbabel/hotfix/story_fixes
KUNALTEMPEST Mar 14, 2026
f45daf5
Merge pull request #228 from darshilbabel/fixes/observability
VishnuKrishnathu Mar 19, 2026
2e56455
Fix: Now Non LLm will call pre processing and post processing if prov…
KUNALTEMPEST Mar 21, 2026
7b4b165
Merge pull request #233 from darshilbabel/hotfix/non_llm_work
KUNALTEMPEST Mar 21, 2026
2a36a0c
SessionStatus Update fix
KUNALTEMPEST Mar 26, 2026
8977d28
Merge pull request #236 from darshilbabel/hotfix/shiksha_samvad
KUNALTEMPEST Mar 26, 2026
4359f34
Add story creation functionality for Delhi Shiksha Samvad
VishnuKrishnathu Apr 14, 2026
f9bbea9
Merge pull request #243 from darshilbabel/feature/pp-delhi-samvad
KUNALTEMPEST Apr 14, 2026
4f22b97
Odiya Lang Support research work
KUNALTEMPEST Apr 17, 2026
f14fcb1
Add Odiya language support and integrate Sarvam text-to-speech functi…
themohitbharti Apr 17, 2026
08ad52e
PostProcessing script for SKOLL BOT
Anujkumar7 Apr 20, 2026
fc0e9c5
Merge pull request #248 from darshilbabel/hotfix/skoll-postprocessing
VishnuKrishnathu Apr 20, 2026
bc55292
Add Odia language support in language choices and models
themohitbharti Apr 20, 2026
859fb96
Merge branch 'hotfix/odia-support' of https://github.com/darshilbabel…
themohitbharti Apr 21, 2026
5d6f1a8
Merge pull request #245 from darshilbabel/hotfix/sarvam-tts
KUNALTEMPEST Apr 21, 2026
5052212
Merge pull request #249 from darshilbabel/hotfix/odia-support
KUNALTEMPEST Apr 21, 2026
764d0b5
Fix on t2t translate
KUNALTEMPEST Apr 21, 2026
38c4f7f
Merge pull request #250 from darshilbabel/hotfix/transalte_fix
KUNALTEMPEST Apr 21, 2026
0b383a3
Refactor language mapping methods and update target language code ret…
themohitbharti Apr 21, 2026
bda7915
Merge pull request #251 from darshilbabel/hotfix/stt-support
KUNALTEMPEST Apr 21, 2026
516e132
Remove 'or' from default languages in Flow model and admin form
themohitbharti Apr 22, 2026
e1f29e9
Merge pull request #252 from darshilbabel/hotfix/stt-support
KUNALTEMPEST Apr 22, 2026
44e5dea
Add logging for received text data in AsyncSocketConsumer and set del…
VishnuKrishnathu Apr 22, 2026
3ca4fba
Merge pull request #253 from darshilbabel/hotfix/buffer_log
VishnuKrishnathu Apr 22, 2026
aa6f9cb
minor fix
darshilbabel Apr 22, 2026
a472d6a
translation concurrency fix
darshilbabel Apr 22, 2026
7bee1a2
minor fix
darshilbabel Apr 22, 2026
6699ffd
Add fuzzy matching and classification for Telangana school data
VishnuKrishnathu Apr 23, 2026
2748e2e
Merge pull request #255 from darshilbabel/feature/telangana-ptm-pps
VishnuKrishnathu Apr 23, 2026
37d5478
Add gevent dependency to project
VishnuKrishnathu Apr 23, 2026
2661fcc
Merge pull request #256 from darshilbabel/feature/telangana-ptm-pps
VishnuKrishnathu Apr 23, 2026
7765136
removing unnecessary log
darshilbabel Apr 27, 2026
887e80c
Merge branch 'master' of github.com:darshilbabel/shikshalokam-mohini-…
darshilbabel Apr 27, 2026
00012e8
Translate Vern Responses Script
VishnuKrishnathu Apr 27, 2026
0f1af83
Add translation cron job for untranslated bot chats
VishnuKrishnathu Apr 27, 2026
d6a6807
Merge pull request #258 from darshilbabel/hotfix/cron-translate
VishnuKrishnathu Apr 27, 2026
8d6e25d
feat: add KPI metrics extraction cron for telangana PTM pilot
VishnuKrishnathu Apr 28, 2026
36e931b
Refactor get_story_html to prioritize flow-specific story bots and en…
themohitbharti Apr 28, 2026
9d8d464
Simplify flow object retrieval in get_story_html function
themohitbharti Apr 28, 2026
6aeb590
refactor: stream LLM batches, skip already-processed sessions
VishnuKrishnathu Apr 28, 2026
6921f30
Merge branch 'hotfix/updated-story' of https://github.com/darshilbabe…
VishnuKrishnathu Apr 28, 2026
5f8433e
refactor: streamline story bot retrieval and enhance logging in updat…
VishnuKrishnathu Apr 28, 2026
a73cd80
Merge pull request #260 from darshilbabel/hotfix/cron-translate
VishnuKrishnathu Apr 29, 2026
d00a9e5
migration script initialised
VishnuKrishnathu Apr 30, 2026
d398be1
Add configurable request timeout for voice provider APIs
Rahulmadiraju May 12, 2026
fbaaaec
feat: add mitigation script for solutions discussed in guest discussions
themohitbharti May 13, 2026
7d18b95
Increase request timeout to 60s
Anujkumar7 May 13, 2026
25040a0
Merge pull request #265 from darshilbabel/feature/empty-challenge-script
KUNALTEMPEST May 13, 2026
378af0c
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
Anujkumar7 May 13, 2026
4660652
Merge pull request #266 from darshilbabel/hotfix/timeout-fix
KUNALTEMPEST May 13, 2026
e67be64
Fix directional glossary handling for Google translations
Rahulmadiraju May 14, 2026
4f7e1bd
Add Google glossary sync support for translations
Rahulmadiraju May 14, 2026
06ca95a
Post Processing script for community FGD
Anujkumar7 May 14, 2026
b9a8723
feat: implement story creation functionality for Odisha Youth bot
VishnuKrishnathu May 15, 2026
05bfa09
Merge pull request #267 from darshilbabel/fix/google-glossary-directi…
VishnuKrishnathu May 15, 2026
95faf81
Merge pull request #268 from darshilbabel/hotfix/timeout-fix
VishnuKrishnathu May 15, 2026
f68fb4c
Resolve merge conflict in AI4Bharat translation timeout handling
Rahulmadiraju May 15, 2026
aea8d16
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
VishnuKrishnathu May 18, 2026
bd71f8b
fix for api search regex
KUNALTEMPEST May 19, 2026
f6c378a
refactor: improve session validation in migration process to skip inv…
themohitbharti May 19, 2026
e409c4a
Merge pull request #272 from darshilbabel/hotfix/sg_commons_fix
KUNALTEMPEST May 21, 2026
15faf99
feat: enhance story creation and translation functionality
VishnuKrishnathu May 22, 2026
c5484f2
reverting the commits by Rahul
VishnuKrishnathu May 22, 2026
d97859e
Merge pull request #273 from darshilbabel/extract-rahul-commits
VishnuKrishnathu May 22, 2026
63a8a04
Merge pull request #274 from darshilbabel/feat/odisha_district_classi…
VishnuKrishnathu May 22, 2026
514e1cb
feat: add cron jobs for community FGD and Odisha Youth story creation
VishnuKrishnathu May 22, 2026
20364b5
Added self host provider and celery config update
KUNALTEMPEST May 28, 2026
a57435b
fix: add error handling for missing toolUseId in final output
VishnuKrishnathu May 29, 2026
32bd2fb
feat: add additional cron jobs for stakeholder and student FGDs
VishnuKrishnathu Jun 3, 2026
60de8d5
Merge pull request #276 from darshilbabel/district_classification
VishnuKrishnathu Jun 3, 2026
56ff7c0
refactor: enhance bot vernacular migration to include all source IDs …
themohitbharti Jun 4, 2026
9801662
refactor: enhance bot sub-model migration to handle existing entries …
themohitbharti Jun 5, 2026
1eb4110
Merge pull request #277 from darshilbabel/hotfix/migration-fix
bhavana-venugopal Jun 5, 2026
126304c
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
themohitbharti Jun 5, 2026
fc2d3e7
Merge pull request #262 from darshilbabel/feat/data-migration-script
KUNALTEMPEST Jun 5, 2026
669218e
Added story media and qa script to handle specific models only
KUNALTEMPEST Jun 6, 2026
fdd9d7a
Merge pull request #278 from darshilbabel/hotfix/script_update
KUNALTEMPEST Jun 7, 2026
9f863b8
Script update for dry run
KUNALTEMPEST Jun 7, 2026
3d8bb61
Merge pull request #279 from darshilbabel/hotfix/script_update
darshilbabel Jun 7, 2026
b61b213
Script story media fix
KUNALTEMPEST Jun 7, 2026
7f2fbe0
Merge pull request #280 from darshilbabel/hotfix/script_update
darshilbabel Jun 7, 2026
0e255e8
feat: add cron jobs for FGD/youth/xylem story creation & district cla…
VishnuKrishnathu Jun 10, 2026
9372947
fix: reset PG sequences after explicit id=1 inserts in prepare_db
VishnuKrishnathu Jun 10, 2026
ce0d23c
Merge branch 'master' of https://github.com/darshilbabel/shikshalokam…
VishnuKrishnathu Jun 10, 2026
dc10f05
feat: configure per-provider request timeouts
VishnuKrishnathu Jun 11, 2026
5e77c0f
fix(translate/shikshalokam): make timeouts configurable, fix STT endp…
VishnuKrishnathu Jun 11, 2026
2547821
feat: implement state categorization and location translation logic
VishnuKrishnathu Jun 12, 2026
fb89db5
chore(scripts): add retransliterate_failed_chats utility
VishnuKrishnathu Jun 17, 2026
721375f
Merge pull request #281 from darshilbabel/features/request-timeout-co…
VishnuKrishnathu Jun 17, 2026
5a7499b
Add PPPI Set 1 and Set 2 story creation cron jobs
Rahulmadiraju Jun 17, 2026
a2e241a
Merge branch 'master' into feature/pppi-story-creation
Rahulmadiraju Jun 17, 2026
7aac668
Merge pull request #282 from darshilbabel/feature/pppi-story-creation
VishnuKrishnathu Jun 18, 2026
1e24d73
syntax error fix
VishnuKrishnathu Jun 18, 2026
f5e74f0
feat: add Tamil language support
Rahulmadiraju Jun 22, 2026
294d67d
minor essential changes
VishnuKrishnathu Jun 23, 2026
7dcc828
Merge pull request #275 from darshilbabel/hotfix/local_models
VishnuKrishnathu Jun 25, 2026
229fdb5
Merge pull request #284 from darshilbabel/feature/tamil-language-support
VishnuKrishnathu Jun 25, 2026
b4a9998
feat: add configurable authentication, Bedrock and Redis configuration
Rahulmadiraju Jun 29, 2026
6d3d7f9
Feat: add LLAMA_3_70B_INSTRUCT_COMMON enum
Rahulmadiraju Jun 30, 2026
91050bf
fix: address Bedrock region configuration review comments
Rahulmadiraju Jun 30, 2026
ef6a2ae
Merge pull request #289 from darshilbabel/rahul/ap-backward-compatibi…
VishnuKrishnathu Jul 1, 2026
9de235b
Fix ValidationException handling for Bedrock state machine bots
Rahulmadiraju Jul 2, 2026
1f31f0c
Handle LLM failure using BotVernacular without advancing conversation
Rahulmadiraju Jul 2, 2026
8f0c90a
Merge pull request #291 from darshilbabel/rahul/ap-backward-compatibi…
VishnuKrishnathu Jul 3, 2026
ffa100f
edited the migration script for shiksha-samvad
Anujkumar7 Jul 16, 2026
099c930
Transliteeration Script added
Anujkumar7 Jul 24, 2026
24608b0
Merge branch 'release-2.1.0' of https://github.com/Anujkumar7/mitra-s…
Anujkumar7 Jul 24, 2026
9de8418
Made changes according to CodeRabbit Review
Anujkumar7 Jul 28, 2026
1c171a3
Edited the remedial script for transliterated.
Anujkumar7 Jul 30, 2026
0cfa18e
Merge remote-tracking branch 'upstream/release-2.2.0' into fixes/ap-t…
Anujkumar7 Jul 30, 2026
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
92 changes: 92 additions & 0 deletions chatbot/management/commands/regenerate_transliterated_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,33 @@
--field-map
Patch mode only. STAGE=field pairs, e.g.
'INTRODUCTION=user_name,ORGANIZATION=organization'.
<<<<<<< HEAD
=======
--language
Override the language passed to report regeneration. If omitted, taken
from the existing Story.language, then the ChatSession.language.
>>>>>>> upstream/release-2.2.0
--bot-profile-id
Profile id used as the bot sender (its messages are excluded from
re-transliteration). Default 1.
--skip-transliterate Skip step 1 (only regenerate reports).
--skip-report Skip step 2 (only re-transliterate chats).
--limit Process at most N sessions (0 = no limit).
--dry-run Report counts only; no DB writes, no report calls.
<<<<<<< HEAD

Report language
---------------
The report is always regenerated in the session's own language -- the same value
``/api/end-story/`` passes, so there is no --language override. ``Story.other_params``
is nevertheless stored in English: ``save_story()`` transliterates the LLM output
back to English using a Transliterate ``Voice`` on the *story* bot. If that Voice is
missing, ``transliterate_to_english_if_needed()`` silently keeps the original script,
``other_params`` ends up in Devanagari, and dashboards reading
``other_params->>'location'`` stop matching the story. This command therefore refuses
to regenerate such sessions instead of corrupting them.
=======
>>>>>>> upstream/release-2.2.0
Comment on lines +83 to +109

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win

Resolve the remaining Git conflict markers.

Line 83 and the related blocks at Lines 128-140, 231-234, 273-281, 304-308, 321-325, 455-459, 475-487, and 631-680 contain literal <<<<<<<, =======, and >>>>>>> markers. Python cannot import this management command until every block is resolved; preserve both the language override flow and the transliteration guard/cache as intended.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@chatbot/management/commands/regenerate_transliterated_reports.py` around
lines 83 - 109, Resolve every remaining Git conflict marker in the management
command, including the documented --language option and the related
implementation blocks around the command’s argument parsing, language selection,
transliteration guard/cache, processing, and reporting logic. Preserve both the
language override flow and the transliteration guard/cache behavior, then verify
no literal conflict markers remain so the module imports as valid Python.

Source: Linters/SAST tools

"""

from collections import namedtuple
Expand All @@ -108,12 +125,19 @@
Voice,
VoiceType,
)
<<<<<<< HEAD
=======
from chatbot.models.company_models import CompanyStateMachine
>>>>>>> upstream/release-2.2.0
from chatbot.utils.transliterate_utils import (
transliterate_text,
get_transliteration_output,
)
<<<<<<< HEAD
from chatbot.utils.story_utils.story_utils import create_story_object, get_story_company_bot
=======
from chatbot.utils.story_utils.story_utils import create_story_object
>>>>>>> upstream/release-2.2.0


# Session-type -> report flow fallback. shikshaChaupal reports are generated
Expand Down Expand Up @@ -204,7 +228,10 @@ def add_arguments(self, parser):
"ALL routes. Leave unset to auto-resolve each session's own flow "
"(required when processing multiple routes/flows at once).",
)
<<<<<<< HEAD
=======
parser.add_argument("--language", type=str, default=None)
>>>>>>> upstream/release-2.2.0
parser.add_argument("--bot-profile-id", type=int, default=1)
parser.add_argument(
"--patch-fields",
Expand Down Expand Up @@ -243,9 +270,15 @@ def handle(self, *args, **opts):
if not routes:
raise CommandError("--route must list at least one bot route.")
flow_override = opts["flow"]
<<<<<<< HEAD
bot_profile_id = opts["bot_profile_id"]
self.bot_profile_id = bot_profile_id
self._story_voice_cache = {}
=======
language_override = opts["language"]
bot_profile_id = opts["bot_profile_id"]
self.bot_profile_id = bot_profile_id
>>>>>>> upstream/release-2.2.0
patch_fields = opts["patch_fields"]
field_map = self._parse_field_map(opts["field_map"]) if patch_fields else {}
skip_transliterate = opts["skip_transliterate"]
Expand All @@ -268,7 +301,11 @@ def handle(self, *args, **opts):
affected, r_success, r_failed = self._process_route(
route=route, stages=stages, date_from=date_from, date_to=date_to,
session_types=session_types, session_ids=session_ids,
<<<<<<< HEAD
flow_override=flow_override,
=======
flow_override=flow_override, language_override=language_override,
>>>>>>> upstream/release-2.2.0
patch_fields=patch_fields, field_map=field_map,
skip_transliterate=skip_transliterate, skip_report=skip_report,
limit=limit, dry_run=dry_run,
Expand All @@ -281,7 +318,11 @@ def handle(self, *args, **opts):

# ------------------------------------------------------------------ #
def _process_route(self, route, stages, date_from, date_to, session_types,
<<<<<<< HEAD
session_ids, flow_override, patch_fields,
=======
session_ids, flow_override, language_override, patch_fields,
>>>>>>> upstream/release-2.2.0
field_map, skip_transliterate, skip_report, limit, dry_run):
"""Scope + Step 1 + Step 2 for a single bot route. Returns
(affected_sessions, reports_success, reports_failed)."""
Expand Down Expand Up @@ -411,7 +452,11 @@ def get_voice(lang):

profile_id = chat_session.profile_id
flow = flow_override or self._resolve_flow(session, chat_session)
<<<<<<< HEAD
language = self._resolve_language(chat_session)
=======
language = language_override or self._resolve_language(session, chat_session)
>>>>>>> upstream/release-2.2.0

# ---- Patch mode: fix only personal fields, no LLM --------------
if patch_fields:
Expand All @@ -427,6 +472,19 @@ def get_voice(lang):
continue

# ---- Full regeneration (default) -------------------------------
<<<<<<< HEAD
if not self._story_bot_can_transliterate(flow, language):
self.stdout.write(self.style.ERROR(
f" Skipping session={session}: no Transliterate Voice for "
f"language='{language}' on the story bot of flow='{flow}'. "
f"Regenerating would store '{language}' text in the English "
f"Story.other_params and drop the story from the dashboard."
))
r_failed += 1
continue

=======
>>>>>>> upstream/release-2.2.0
if dry_run:
self.stdout.write(
f" [dry-run] would regenerate session={session} "
Expand Down Expand Up @@ -570,6 +628,39 @@ def _resolve_flow(self, session, chat_session):
st = chat_session.session_type
return SESSION_TYPE_TO_FLOW.get(st, st)

<<<<<<< HEAD
def _resolve_language(self, chat_session):
"""The report is regenerated in the conversation language -- the same value
/api/end-story/ passes. Story.language is always 'en' (save_story hard-codes
it), so it is not a useful fallback and is not consulted."""
return (chat_session.language if chat_session else None) or "en"

def _story_bot_can_transliterate(self, flow, language):
"""True when the story bot for `flow` has a Transliterate Voice for `language`.

save_story() builds the *English* Story.other_params by transliterating the
LLM output; with no Voice it silently returns the original script. The story
bot must be resolved via get_story_company_bot() -- it is a different bot from
the conversation route's bot used elsewhere in this command.
"""
if language == "en":
return True
key = (str(flow), language)
if key not in self._story_voice_cache:
try:
story_bot, _validate_bot = get_story_company_bot(profile=None, flow=flow)
except Exception as exc: # noqa: BLE001
self.stdout.write(self.style.WARNING(
f" Could not resolve story bot for flow='{flow}': {exc}"
))
self._story_voice_cache[key] = False
else:
self._story_voice_cache[key] = Voice.objects.filter(
company_bot=story_bot, type=VoiceType.Transliterate, language=language
).exists()
return self._story_voice_cache[key]

=======
def _resolve_language(self, session, chat_session):
# The report/PDF is rendered in the conversation language (its
# StoryTranslation), while the main Story is often stored in English.
Expand All @@ -586,6 +677,7 @@ def _resolve_language(self, session, chat_session):
pass
return (chat_session.language if chat_session else None) or "en"

>>>>>>> upstream/release-2.2.0
def _summary(self, affected, r_success, r_failed, dry_run):
self.stdout.write("\n" + "=" * 50)
prefix = "[dry-run] " if dry_run else ""
Expand Down