Skip to content

Python AI - #14

Merged
Yuvraj-Sarathe merged 11 commits into
Omnikon-Org:mainfrom
Yuvraj-Sarathe:Python-Yuvraj
Jun 30, 2026
Merged

Python AI #14
Yuvraj-Sarathe merged 11 commits into
Omnikon-Org:mainfrom
Yuvraj-Sarathe:Python-Yuvraj

Conversation

@Yuvraj-Sarathe

Copy link
Copy Markdown
Member

Running a Python AI workflow using an OpenRouter api key and gpt 4o mini

…syncClient cleanup, WR-10 safe key access, WR-11 clamp score
- Add a TCP connectivity check (checkRedisReachable) for Redis before
  creating BullMQ Queue and Worker, using Node's built-in net module
- Move BulMQ initialization into async initRedisDeps() so the server
  starts immediately even when Redis is unavailable
- If Redis is unreachable, log a single clear warning with instructions
  to start Docker, and leave submissionQueue/submissionWorker as null
- If Redis is reachable, create Queue and Worker as before
- All existing tRPC context consumers safely handle Queue | null

Fixes the npm run dev error where Redis being down caused
AggregateError [ECONNREFUSED] spam flooding the console.
- Python AI service with OpenRouter-based LLM client
- Code generation, quiz generation, AST diff scoring, defend Q&A endpoints
- TypeScript bridge (ai-client.ts + submission-worker.ts)
- 28 Python tests + 12 TypeScript tests
- Fixed: async LLM calls, API error msgs, test env cleanup, AST matching
- Fixed: build errors (prisma prebuild, exclude tests, typed catch param)
- Fixed: graceful Redis fallback when Docker unavailable
@Yuvraj-Sarathe Yuvraj-Sarathe changed the title Python yuvraj Python AI Jun 30, 2026
@Yuvraj-Sarathe
Yuvraj-Sarathe merged commit 87b2ec7 into Omnikon-Org:main Jun 30, 2026
0 of 2 checks passed
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.

1 participant