# law-llm **Repository Path**: huang-feiyang0113/law-llm ## Basic Information - **Project Name**: law-llm - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-30 - **Last Updated**: 2025-07-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 后端 - 框架:Flask - 接口实现 - chat(法律知识问答) - 配置(`apis/chat/config.py`) ```python import os model_hub_path = r'E:\hugginface\models' model_name = 'Qwen3-1.7B' model_path = os.path.join(model_hub_path, model_name) ``` # 前端 - 框架:Vue3+Vite - 路由配置(`src/router/index.js`) - 启动 ```shell cd law-llm-front npm install npm run dev ``` - 代理服务器 ```js import {defineConfig} from 'vite' import vue from '@vitejs/plugin-vue' import {fileURLToPath} from "url"; // https://vite.dev/config/ export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } }, server: { proxy: { '/py': { // Flask h target: 'http://127.0.0.1:5000', changeOrigin: true, rewrite: path => path.replace(RegExp(/^\/py/), '') }, } }, }) ```