Rooni commited on
Commit
9e71518
·
verified ·
1 Parent(s): 6043d70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def generate(description):
21
  }
22
 
23
  try:
24
- response = requests.post(f'{os.getenv("BASE_URL")}/v1/chat/completions', headers=headers, json=payload, stream=True, timeout=200)
25
  response.raise_for_status() # Проверяем на ошибки HTTP
26
 
27
  full_text = ""
 
21
  }
22
 
23
  try:
24
+ response = requests.post(f'{os.getenv("BASE_URL")}/v1/chat/completions', headers=headers, json=payload, timeout=200)
25
  response.raise_for_status() # Проверяем на ошибки HTTP
26
 
27
  full_text = ""