Skip to content

Fall back system llm#152

Closed
PrajanManojKumarRekha wants to merge 4 commits into
Team-NoxVeil:mainfrom
PrajanManojKumarRekha:FallBack-System-LLM
Closed

Fall back system llm#152
PrajanManojKumarRekha wants to merge 4 commits into
Team-NoxVeil:mainfrom
PrajanManojKumarRekha:FallBack-System-LLM

Conversation

@PrajanManojKumarRekha
Copy link
Copy Markdown

What this does

Adds a configurable LLM fallback system that keeps Groq as the primary provider and automatically routes to a secondary provider if Groq has an outage at the moment a background job fires.

Why

process_resume_task runs async via TaskIQ with no human in the loop. If Groq goes down when the task executes, the job fails silently and the candidate's resume never gets evaluated. Rate limiting is already handled but a provider outage had no recovery path until now.

Changes

  • Added default_llm_provider and wired it through config and callers
  • Added FallbackLLMProvider that wraps any two providers implementing LLMProviderInterface
  • Groq stays primary, fallback is configurable via FALLBACK_LLM_MODEL_NAME and LITELLM_API_KEY
  • Updated .env.example and docs with the new config fields

Testing

Verified end to end by forcing the primary to fail and confirming the fallback provider picks up the request and returns a valid response.

@PrajanManojKumarRekha PrajanManojKumarRekha force-pushed the FallBack-System-LLM branch 2 times, most recently from d176177 to d75ef42 Compare May 31, 2026 16:24
@Karanjot786

This comment was marked as off-topic.

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.

2 participants