Python AI - #14
Merged
Merged
Conversation
…nt and import Timeout
…and config key validation
…nd use in quiz and defend routes
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Running a Python AI workflow using an OpenRouter api key and gpt 4o mini