thinking-model-client / vite.config.js
moelove's picture
add streaming support (#1)
fe9f896 unverified
raw
history blame
449 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/v1': {
target: 'https://moelove.info',
changeOrigin: true,
secure: false,
headers: {
'Access-Control-Allow-Origin': '*'
}
},
'/api': {
target: 'http://localhost:7860',
changeOrigin: true
}
}
}
})