Timothy Jaeryang Baek 1 hónapja
szülő
commit
ed5d95f434
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      backend/open_webui/config.py
  2. 1 1
      backend/open_webui/utils/tools.py

+ 1 - 1
backend/open_webui/config.py

@@ -313,7 +313,7 @@ JWT_EXPIRES_IN = PersistentConfig(
 ####################################
 
 ENABLE_OAUTH_PERSISTENT_CONFIG = (
-    os.environ.get("ENABLE_OAUTH_PERSISTENT_CONFIG", "True").lower() == "true"
+    os.environ.get("ENABLE_OAUTH_PERSISTENT_CONFIG", "False").lower() == "true"
 )
 
 ENABLE_OAUTH_SIGNUP = PersistentConfig(

+ 1 - 1
backend/open_webui/utils/tools.py

@@ -123,7 +123,7 @@ async def get_tools(
 
                     if auth_type == "bearer":
                         headers["Authorization"] = (
-                            f"Bearer {tool_server_connection.get("key", "")}"
+                            f"Bearer {tool_server_connection.get('key', '')}"
                         )
                     elif auth_type == "session":
                         headers["Authorization"] = (