| @@ -8,9 +8,9 @@ export default defineConfig({ | |||
| outputPath: 'dist', | |||
| alias: { '@parent': path.resolve(__dirname, '../') }, | |||
| npmClient: 'npm', | |||
| base: '/', | |||
| base: '/ss-ragflow/', | |||
| routes, | |||
| publicPath: '/', | |||
| publicPath: '/ss-ragflow/', | |||
| esbuildMinifyIIFE: true, | |||
| icons: {}, | |||
| hash: true, | |||
| @@ -33,7 +33,7 @@ export default defineConfig({ | |||
| copy: ['src/conf.json'], | |||
| proxy: [ | |||
| { | |||
| context: ['/api', '/v1'], | |||
| context: ['/ss-ragflow-api/api', '/ss-ragflow-api/v1'], | |||
| target: 'http://127.0.0.1:9380/', | |||
| changeOrigin: true, | |||
| ws: true, | |||
| @@ -35,7 +35,7 @@ export const useSendSharedMessage = () => { | |||
| useCreateNextSharedConversation(); | |||
| const { handleInputChange, value, setValue } = useHandleMessageInputChange(); | |||
| const { send, answer, done } = useSendMessageWithSse( | |||
| `/api/v1/${from === SharedFrom.Agent ? 'agentbots' : 'chatbots'}/${conversationId}/completions`, | |||
| `/ss-ragflow-api/api/v1/${from === SharedFrom.Agent ? 'agentbots' : 'chatbots'}/${conversationId}/completions`, | |||
| ); | |||
| const { | |||
| derivedMessages, | |||
| @@ -1,4 +1,4 @@ | |||
| let api_host = `/v1`; | |||
| let api_host = `/ss-ragflow-api/v1`; | |||
| export { api_host }; | |||