Baktabek commited on
Commit
87f88e7
·
verified ·
1 Parent(s): e555409

Deploy RAG assistant

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -129,7 +129,7 @@ async def startup_event():
129
 
130
  # HTTP client для OpenRouter
131
  print("🤖 Настройка OpenRouter API...")
132
- httpx_client = httpx.AsyncClient(timeout=30.0)
133
  print(f"✅ OpenRouter настроен (модель: {OPENROUTER_MODEL})")
134
 
135
  print("✨ Сервер готов!")
@@ -238,9 +238,9 @@ async def query(request: QueryRequest):
238
  }
239
  ],
240
  "temperature": 0.3,
241
- "max_tokens": 500
242
  },
243
- timeout=30.0
244
  )
245
  response.raise_for_status()
246
 
 
129
 
130
  # HTTP client для OpenRouter
131
  print("🤖 Настройка OpenRouter API...")
132
+ httpx_client = httpx.AsyncClient(timeout=15.0)
133
  print(f"✅ OpenRouter настроен (модель: {OPENROUTER_MODEL})")
134
 
135
  print("✨ Сервер готов!")
 
238
  }
239
  ],
240
  "temperature": 0.3,
241
+ "max_tokens": 300
242
  },
243
+ timeout=15.0
244
  )
245
  response.raise_for_status()
246