forked from open-webui/open-webui
		
	feat: message ts display
This commit is contained in:
		
							parent
							
								
									59724ea9d8
								
							
						
					
					
						commit
						4ec81a897e
					
				
					 5 changed files with 22 additions and 7 deletions
				
			
		|  | @ -146,7 +146,7 @@ | |||
| 				user: _user ?? undefined, | ||||
| 				content: userPrompt, | ||||
| 				files: files.length > 0 ? files : undefined, | ||||
| 				timestamp: Date.now() | ||||
| 				timestamp: Math.floor(Date.now() / 1000) // Unix epoch | ||||
| 			}; | ||||
| 
 | ||||
| 			// Add message to history and Set currentId to messageId | ||||
|  | @ -258,7 +258,7 @@ | |||
| 			role: 'assistant', | ||||
| 			content: '', | ||||
| 			model: model, | ||||
| 			timestamp: Date.now() | ||||
| 			timestamp: Math.floor(Date.now() / 1000) // Unix epoch | ||||
| 		}; | ||||
| 
 | ||||
| 		// Add message to history and Set currentId to messageId | ||||
|  | @ -449,7 +449,7 @@ | |||
| 			role: 'assistant', | ||||
| 			content: '', | ||||
| 			model: model, | ||||
| 			timestamp: Date.now() | ||||
| 			timestamp: Math.floor(Date.now() / 1000) // Unix epoch | ||||
| 		}; | ||||
| 
 | ||||
| 		history.messages[responseMessageId] = responseMessage; | ||||
|  |  | |||
|  | @ -165,7 +165,7 @@ | |||
| 				user: _user ?? undefined, | ||||
| 				content: userPrompt, | ||||
| 				files: files.length > 0 ? files : undefined, | ||||
| 				timestamp: Date.now() | ||||
| 				timestamp: Math.floor(Date.now() / 1000) // Unix epoch | ||||
| 			}; | ||||
| 
 | ||||
| 			// Add message to history and Set currentId to messageId | ||||
|  | @ -276,7 +276,7 @@ | |||
| 			role: 'assistant', | ||||
| 			content: '', | ||||
| 			model: model, | ||||
| 			timestamp: Date.now() | ||||
| 			timestamp: Math.floor(Date.now() / 1000) // Unix epoch | ||||
| 		}; | ||||
| 
 | ||||
| 		// Add message to history and Set currentId to messageId | ||||
|  | @ -467,7 +467,7 @@ | |||
| 			role: 'assistant', | ||||
| 			content: '', | ||||
| 			model: model, | ||||
| 			timestamp: Date.now() | ||||
| 			timestamp: Math.floor(Date.now() / 1000) // Unix epoch | ||||
| 		}; | ||||
| 
 | ||||
| 		history.messages[responseMessageId] = responseMessage; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek