Spaces:
				
			
			
	
			
			
					
		Running
		
			on 
			
			CPU Upgrade
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
			on 
			
			CPU Upgrade
	Fix lint errors
Browse files
    	
        package.json
    CHANGED
    
    | @@ -8,8 +8,8 @@ | |
| 8 | 
             
            		"preview": "vite preview",
         | 
| 9 | 
             
            		"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
         | 
| 10 | 
             
            		"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
         | 
| 11 | 
            -
            		"lint": "prettier  | 
| 12 | 
            -
            		"format": "prettier  | 
| 13 | 
             
            	},
         | 
| 14 | 
             
            	"devDependencies": {
         | 
| 15 | 
             
            		"@sveltejs/adapter-auto": "^3.2.2",
         | 
|  | |
| 8 | 
             
            		"preview": "vite preview",
         | 
| 9 | 
             
            		"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
         | 
| 10 | 
             
            		"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
         | 
| 11 | 
            +
            		"lint": "prettier . --check . && eslint --ext .js,.ts,.svelte src/",
         | 
| 12 | 
            +
            		"format": "prettier . --write ."
         | 
| 13 | 
             
            	},
         | 
| 14 | 
             
            	"devDependencies": {
         | 
| 15 | 
             
            		"@sveltejs/adapter-auto": "^3.2.2",
         | 
    	
        src/lib/components/InferencePlayground/InferencePlaygroundMessage.svelte
    CHANGED
    
    | @@ -16,6 +16,7 @@ | |
| 16 | 
             
            	<div class="col-span-2 pb-1 pt-3 text-sm font-semibold uppercase @2xl:col-span-1 @2xl:pb-2">
         | 
| 17 | 
             
            		{message.role}
         | 
| 18 | 
             
            	</div>
         | 
|  | |
| 19 | 
             
            	<textarea
         | 
| 20 | 
             
            		{autofocus}
         | 
| 21 | 
             
            		bind:value={message.content}
         | 
| @@ -27,7 +28,7 @@ | |
| 27 | 
             
            		}}
         | 
| 28 | 
             
            	></textarea>
         | 
| 29 | 
             
            	<button
         | 
| 30 | 
            -
            		tabindex=" | 
| 31 | 
             
            		on:click={() => {
         | 
| 32 | 
             
            			dispatch("delete");
         | 
| 33 | 
             
            		}}
         | 
|  | |
| 16 | 
             
            	<div class="col-span-2 pb-1 pt-3 text-sm font-semibold uppercase @2xl:col-span-1 @2xl:pb-2">
         | 
| 17 | 
             
            		{message.role}
         | 
| 18 | 
             
            	</div>
         | 
| 19 | 
            +
            	<!-- svelte-ignore a11y-autofocus -->
         | 
| 20 | 
             
            	<textarea
         | 
| 21 | 
             
            		{autofocus}
         | 
| 22 | 
             
            		bind:value={message.content}
         | 
|  | |
| 28 | 
             
            		}}
         | 
| 29 | 
             
            	></textarea>
         | 
| 30 | 
             
            	<button
         | 
| 31 | 
            +
            		tabindex="0"
         | 
| 32 | 
             
            		on:click={() => {
         | 
| 33 | 
             
            			dispatch("delete");
         | 
| 34 | 
             
            		}}
         | 
    	
        src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte
    CHANGED
    
    | @@ -48,7 +48,7 @@ | |
| 48 | 
             
            		{models}
         | 
| 49 | 
             
            		{conversation}
         | 
| 50 | 
             
            		on:modelSelected={e => changeModel(e.detail)}
         | 
| 51 | 
            -
            		on:close={ | 
| 52 | 
             
            	/>
         | 
| 53 | 
             
            {/if}
         | 
| 54 |  | 
|  | |
| 48 | 
             
            		{models}
         | 
| 49 | 
             
            		{conversation}
         | 
| 50 | 
             
            		on:modelSelected={e => changeModel(e.detail)}
         | 
| 51 | 
            +
            		on:close={() => (showModelPickerModal = false)}
         | 
| 52 | 
             
            	/>
         | 
| 53 | 
             
            {/if}
         | 
| 54 |  | 
    	
        src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte
    CHANGED
    
    | @@ -110,6 +110,7 @@ | |
| 110 | 
             
            		>
         | 
| 111 | 
             
            			<div class="flex items-center border-b px-3 dark:border-gray-800">
         | 
| 112 | 
             
            				<IconSearch classNames="mr-2 text-sm" />
         | 
|  | |
| 113 | 
             
            				<input
         | 
| 114 | 
             
            					autofocus
         | 
| 115 | 
             
            					class="flex h-10 w-full rounded-md bg-transparent py-3 text-sm placeholder-gray-400 outline-none"
         | 
|  | |
| 110 | 
             
            		>
         | 
| 111 | 
             
            			<div class="flex items-center border-b px-3 dark:border-gray-800">
         | 
| 112 | 
             
            				<IconSearch classNames="mr-2 text-sm" />
         | 
| 113 | 
            +
            				<!-- svelte-ignore a11y-autofocus -->
         | 
| 114 | 
             
            				<input
         | 
| 115 | 
             
            					autofocus
         | 
| 116 | 
             
            					class="flex h-10 w-full rounded-md bg-transparent py-3 text-sm placeholder-gray-400 outline-none"
         | 
    	
        tsconfig.json
    CHANGED
    
    | @@ -9,10 +9,10 @@ | |
| 9 | 
             
            		"skipLibCheck": true,
         | 
| 10 | 
             
            		"sourceMap": true,
         | 
| 11 | 
             
            		"strict": true,
         | 
| 12 | 
            -
            		" | 
| 13 | 
            -
            	}
         | 
|  | |
| 14 | 
             
            	// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
         | 
| 15 | 
            -
            	// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
         | 
| 16 | 
             
            	//
         | 
| 17 | 
             
            	// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
         | 
| 18 | 
             
            	// from the referenced tsconfig.json - TypeScript does not merge them in
         | 
|  | |
| 9 | 
             
            		"skipLibCheck": true,
         | 
| 10 | 
             
            		"sourceMap": true,
         | 
| 11 | 
             
            		"strict": true,
         | 
| 12 | 
            +
            		"target": "ES2018"
         | 
| 13 | 
            +
            	},
         | 
| 14 | 
            +
            	"exclude": ["vite.config.ts"]
         | 
| 15 | 
             
            	// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
         | 
|  | |
| 16 | 
             
            	//
         | 
| 17 | 
             
            	// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
         | 
| 18 | 
             
            	// from the referenced tsconfig.json - TypeScript does not merge them in
         | 

