mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	replace Tuple with tuple
This commit is contained in:
		
							parent
							
								
									a518d50477
								
							
						
					
					
						commit
						0470146d7b
					
				@ -21,7 +21,7 @@ import asyncio
 | 
			
		||||
import logging
 | 
			
		||||
import time
 | 
			
		||||
from urllib.parse import urlparse
 | 
			
		||||
from typing import Optional, List, Union
 | 
			
		||||
from typing import Optional, Union
 | 
			
		||||
 | 
			
		||||
from starlette.background import BackgroundTask
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -2,7 +2,7 @@ from pathlib import Path
 | 
			
		||||
import hashlib
 | 
			
		||||
import re
 | 
			
		||||
from datetime import timedelta
 | 
			
		||||
from typing import Optional, List, Tuple, Callable
 | 
			
		||||
from typing import Optional, Callable
 | 
			
		||||
import uuid
 | 
			
		||||
import time
 | 
			
		||||
 | 
			
		||||
@ -52,7 +52,7 @@ def remove_system_message(messages: list[dict]) -> list[dict]:
 | 
			
		||||
    return [message for message in messages if message["role"] != "system"]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def pop_system_message(messages: list[dict]) -> Tuple[Optional[dict], list[dict]]:
 | 
			
		||||
def pop_system_message(messages: list[dict]) -> tuple[Optional[dict], list[dict]]:
 | 
			
		||||
    return get_system_message(messages), remove_system_message(messages)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import inspect
 | 
			
		||||
from typing import get_type_hints, List, Dict, Any
 | 
			
		||||
from typing import get_type_hints
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def doc_to_dict(docstring):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user