GitHub Actions commited on
Commit
09b0800
·
1 Parent(s): 937453e

Deploy backend from GitHub Actions

Browse files

🚀 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

src/agents/personalization_agent.py CHANGED
@@ -646,4 +646,4 @@ Consider the following:
646
 
647
  *Generated by AI Personalization Assistant*"""
648
 
649
- return prefix + user_context + guidance + suffix
 
646
 
647
  *Generated by AI Personalization Assistant*"""
648
 
649
+ return prefix + user_context + guidance + suffix
src/services/openai_translation/client.py CHANGED
@@ -19,6 +19,8 @@ class GeminiOpenAIClient:
19
  self.provider = AsyncOpenAI(
20
  base_url="https://generativelanguage.googleapis.com/v1beta/openai/",
21
  api_key=api_key,
 
 
22
  )
23
 
24
  # Define the chat completions model using Gemini
 
19
  self.provider = AsyncOpenAI(
20
  base_url="https://generativelanguage.googleapis.com/v1beta/openai/",
21
  api_key=api_key,
22
+ max_retries=0, # Fail fast on rate limits to allow fallback
23
+ timeout=30.0 # 30s timeout per request
24
  )
25
 
26
  # Define the chat completions model using Gemini