Space Bot commited on
Commit
96d0e8b
·
2 Parent(s): abe3c4d 0fb6917

merge upstream

Browse files
backend/open_webui/env.py CHANGED
@@ -54,6 +54,8 @@ else:
54
  DEVICE_TYPE = "cpu"
55
 
56
  try:
 
 
57
  if torch.backends.mps.is_available() and torch.backends.mps.is_built():
58
  DEVICE_TYPE = "mps"
59
  except Exception:
 
54
  DEVICE_TYPE = "cpu"
55
 
56
  try:
57
+ import torch
58
+
59
  if torch.backends.mps.is_available() and torch.backends.mps.is_built():
60
  DEVICE_TYPE = "mps"
61
  except Exception:
backend/open_webui/routers/retrieval.py CHANGED
@@ -384,7 +384,7 @@ async def get_rag_config(request: Request, user=Depends(get_admin_user)):
384
  "serply_api_key": request.app.state.config.SERPLY_API_KEY,
385
  "tavily_api_key": request.app.state.config.TAVILY_API_KEY,
386
  "searchapi_api_key": request.app.state.config.SEARCHAPI_API_KEY,
387
- "seaarchapi_engine": request.app.state.config.SEARCHAPI_ENGINE,
388
  "jina_api_key": request.app.state.config.JINA_API_KEY,
389
  "bing_search_v7_endpoint": request.app.state.config.BING_SEARCH_V7_ENDPOINT,
390
  "bing_search_v7_subscription_key": request.app.state.config.BING_SEARCH_V7_SUBSCRIPTION_KEY,
 
384
  "serply_api_key": request.app.state.config.SERPLY_API_KEY,
385
  "tavily_api_key": request.app.state.config.TAVILY_API_KEY,
386
  "searchapi_api_key": request.app.state.config.SEARCHAPI_API_KEY,
387
+ "searchapi_engine": request.app.state.config.SEARCHAPI_ENGINE,
388
  "jina_api_key": request.app.state.config.JINA_API_KEY,
389
  "bing_search_v7_endpoint": request.app.state.config.BING_SEARCH_V7_ENDPOINT,
390
  "bing_search_v7_subscription_key": request.app.state.config.BING_SEARCH_V7_SUBSCRIPTION_KEY,
backend/open_webui/utils/oauth.py CHANGED
@@ -314,7 +314,7 @@ class OAuthManager:
314
  expires_delta=parse_duration(auth_manager_config.JWT_EXPIRES_IN),
315
  )
316
 
317
- if auth_manager_config.ENABLE_OAUTH_GROUP_MANAGEMENT:
318
  self.update_user_groups(
319
  user=user,
320
  user_data=user_data,
 
314
  expires_delta=parse_duration(auth_manager_config.JWT_EXPIRES_IN),
315
  )
316
 
317
+ if auth_manager_config.ENABLE_OAUTH_GROUP_MANAGEMENT and user.role != "admin":
318
  self.update_user_groups(
319
  user=user,
320
  user_data=user_data,
src/routes/s/[id]/+page.svelte CHANGED
@@ -126,7 +126,7 @@
126
 
127
  {#if loaded}
128
  <div
129
- class="min-h-screen max-h-screen w-full flex flex-col text-gray-700 dark:text-gray-100 bg-white dark:bg-gray-900"
130
  >
131
  <div class="flex flex-col flex-auto justify-center relative">
132
  <div class=" flex flex-col w-full flex-auto overflow-auto h-0" id="messages-container">
@@ -166,7 +166,7 @@
166
  </div>
167
 
168
  <div
169
- class="absolute bottom-0 right-0 left-0 flex justify-center w-full bg-gradient-to-b from-transparent to-gray-900"
170
  >
171
  <div class="pb-5">
172
  <button
 
126
 
127
  {#if loaded}
128
  <div
129
+ class="h-screen max-h-[100dvh] w-full flex flex-col text-gray-700 dark:text-gray-100 bg-white dark:bg-gray-900"
130
  >
131
  <div class="flex flex-col flex-auto justify-center relative">
132
  <div class=" flex flex-col w-full flex-auto overflow-auto h-0" id="messages-container">
 
166
  </div>
167
 
168
  <div
169
+ class="absolute bottom-0 right-0 left-0 flex justify-center w-full bg-gradient-to-b from-transparent to-white dark:to-gray-900"
170
  >
171
  <div class="pb-5">
172
  <button