repo_description: User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
repo_topics: ai llm llm-ui llm-webui llms mcp ollama ollama-webui open-webui openai openapi rag self-hosted ui webui
code: import { sveltekit } from '@sveltejs/kit/vite';
  import { defineConfig } from 'vite';
  
  import { viteStaticCopy } from 'vite-plugin-static-copy';
  
  export default defineConfig({
  	plugins: [
  		sveltekit(),
  		viteStaticCopy({
  			targets: [
  				{
  					src: 'node_modules/onnxruntime-web/dist/*.jsep.*',
  
  					dest: 'wasm'
  				}
  			]
  		})
  	],
  	define: {
  		APP_VERSION: JSON.stringify(process.env.npm_package_version),
  		APP_BUILD_HASH: JSON.stringify(process.env.APP_BUILD_HASH || 'dev-build')
  	},
  	build: {
  		sourcemap: true
  	},
  	worker: {
  		format: 'es'
  	},
  	esbuild: {
  		pure: process.env.ENV === 'dev' ? [] : ['console.log', 'console.debug', 'console.error']
  	}
  });
  