| outputPath: 'dist', | outputPath: 'dist', | ||||
| alias: { '@parent': path.resolve(__dirname, '../') }, | alias: { '@parent': path.resolve(__dirname, '../') }, | ||||
| npmClient: 'npm', | npmClient: 'npm', | ||||
| base: '/', | |||||
| base: '/ss-ragflow/', | |||||
| routes, | routes, | ||||
| publicPath: '/', | |||||
| publicPath: '/ss-ragflow/', | |||||
| esbuildMinifyIIFE: true, | esbuildMinifyIIFE: true, | ||||
| icons: {}, | icons: {}, | ||||
| hash: true, | hash: true, | ||||
| copy: ['src/conf.json'], | copy: ['src/conf.json'], | ||||
| proxy: [ | proxy: [ | ||||
| { | { | ||||
| context: ['/api', '/v1'], | |||||
| context: ['/ss-ragflow-api/api', '/ss-ragflow-api/v1'], | |||||
| target: 'http://127.0.0.1:9380/', | target: 'http://127.0.0.1:9380/', | ||||
| changeOrigin: true, | changeOrigin: true, | ||||
| ws: true, | ws: true, | 
| useCreateNextSharedConversation(); | useCreateNextSharedConversation(); | ||||
| const { handleInputChange, value, setValue } = useHandleMessageInputChange(); | const { handleInputChange, value, setValue } = useHandleMessageInputChange(); | ||||
| const { send, answer, done } = useSendMessageWithSse( | 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 { | const { | ||||
| derivedMessages, | derivedMessages, | 
| let api_host = `/v1`; | |||||
| let api_host = `/ss-ragflow-api/v1`; | |||||
| export { api_host }; | export { api_host }; | ||||