diff --git a/src/index.js b/src/index.js index 9e87cb7..f418d41 100644 --- a/src/index.js +++ b/src/index.js @@ -10,7 +10,7 @@ const dataRoutes = require('./routes/data'); const dbConfig = require('./config/database'); const app = express(); -const PORT = process.env.PORT || 5000; +const PORT = process.env.PORT || 5500; // Middleware app.use(cors()); diff --git a/src/routes/data/documentProcessing.js b/src/routes/data/documentProcessing.js index 8c6c76d..66b0b30 100644 --- a/src/routes/data/documentProcessing.js +++ b/src/routes/data/documentProcessing.js @@ -178,7 +178,7 @@ router.post('/process-extraction', authenticateToken, async (req, res) => { const { kUmsatzBeleg, markDown } = umsatzResult.recordset[0]; const response = await openai.responses.create({ - model: "gpt-4o-mini", + model: "gpt-5-mini", input: [ { "role": "developer", "content": [{ "type": "input_text", "text": `Extract specified information from provided input and structure it in a JSON format. @@ -228,7 +228,6 @@ router.post('/process-extraction', authenticateToken, async (req, res) => { }, "required": ["date", "invoice_number", "net_amounts_and_tax", "gross_amount", "currency", "country", "sender", "creditorID"], "additionalProperties": false } } }, - reasoning: { "effort": "medium", "summary": "auto" }, tools: [], store: false }); @@ -250,7 +249,7 @@ router.post('/process-extraction', authenticateToken, async (req, res) => { const { kPdfObjekt, markDown } = pdfResult.recordset[0]; const response = await openai.responses.create({ - model: "gpt-4o-mini", + model: "gpt-5-mini", input: [ { "role": "developer", "content": [{ "type": "input_text", "text": `Extract specified information from provided input and structure it in a JSON format. @@ -300,7 +299,6 @@ router.post('/process-extraction', authenticateToken, async (req, res) => { }, "required": ["date", "invoice_number", "net_amounts_and_tax", "gross_amount", "currency", "country", "sender", "creditorID"], "additionalProperties": false } } }, - reasoning: { "effort": "medium", "summary": "auto" }, tools: [], store: false }); diff --git a/webpack.config.js b/webpack.config.js index 5c1ecc1..ba5c1c5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -75,7 +75,7 @@ module.exports = { }, proxy: { '/api': { - target: 'http://localhost:5000', + target: 'http://localhost:5500', changeOrigin: true, }, }, diff --git a/webpack.prod.config.js b/webpack.prod.config.js index 36a58a5..7bc5bf9 100644 --- a/webpack.prod.config.js +++ b/webpack.prod.config.js @@ -85,7 +85,7 @@ module.exports = { }, proxy: { '/api': { - target: 'http://localhost:5000', + target: 'http://localhost:5500', changeOrigin: true, }, }, @@ -94,4 +94,4 @@ module.exports = { maxAssetSize: 512000, maxEntrypointSize: 512000, }, -}; \ No newline at end of file +};