forked from open-webui/open-webui
		
	merged new updates
This commit is contained in:
		
						commit
						d4fd6c5a57
					
				
					 16 changed files with 828 additions and 67 deletions
				
			
		| 
						 | 
				
			
			@ -81,14 +81,18 @@
 | 
			
		|||
								throw data;
 | 
			
		||||
							}
 | 
			
		||||
 | 
			
		||||
							if (data.done == false) {
 | 
			
		||||
								if (prompt == '' && data.response == '\n') {
 | 
			
		||||
									continue;
 | 
			
		||||
								} else {
 | 
			
		||||
									prompt += data.response;
 | 
			
		||||
									console.log(data.response);
 | 
			
		||||
									chatInputElement.scrollTop = chatInputElement.scrollHeight;
 | 
			
		||||
									await tick();
 | 
			
		||||
							if ('id' in data) {
 | 
			
		||||
								console.log(data);
 | 
			
		||||
							} else {
 | 
			
		||||
								if (data.done == false) {
 | 
			
		||||
									if (prompt == '' && data.response == '\n') {
 | 
			
		||||
										continue;
 | 
			
		||||
									} else {
 | 
			
		||||
										prompt += data.response;
 | 
			
		||||
										console.log(data.response);
 | 
			
		||||
										chatInputElement.scrollTop = chatInputElement.scrollHeight;
 | 
			
		||||
										await tick();
 | 
			
		||||
									}
 | 
			
		||||
								}
 | 
			
		||||
							}
 | 
			
		||||
						}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -121,7 +121,7 @@
 | 
			
		|||
				<div class="flex-1 mr-2">
 | 
			
		||||
					<input
 | 
			
		||||
						class="w-full rounded py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-800 outline-none"
 | 
			
		||||
						placeholder="Enter URL (e.g. http://localhost:11434/api)"
 | 
			
		||||
						placeholder="Enter URL (e.g. http://localhost:11434)"
 | 
			
		||||
						bind:value={API_BASE_URL}
 | 
			
		||||
					/>
 | 
			
		||||
				</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue