kyang6 / llmparser

Classify and extract structured data with LLMs
https://llmparser.com
MIT License
407 stars 23 forks source link

gpt-4 not working #11

Open r3v3r3seEntropy opened 1 year ago

r3v3r3seEntropy commented 1 year ago

I have GPT-4 for my open-ai-account but whenever i edit the model to gpt-4 all result values are null, confidence is null etc. GPT-4 is enabled for my account, i can use gpt-4 with my api keys fields: { 'Patient name': { value: null, source: '', confidence: 0, type: 'string' }, 'Patient age': { value: null, source: '', confidence: 0, type: 'number' }, 'Present illness history': { value: null, source: '', confidence: 0, type: 'string' }, 'Chief complaints': { value: null, source: '', confidence: 0, type: 'string' }, 'Family history': { value: null, source: '', confidence: 0, type: 'string' }, 'Menstrual history': { value: null, source: '', confidence: 0, type: 'string' }, 'Drug history': { value: null, source: '', confidence: 0, type: 'string' } }

r3v3r3seEntropy commented 1 year ago

Even with the given input, at SimpleClassifier. (/Users/aritradas/Downloads/test2/node_modules/llmparser/lib/classifier/classification_techniques/simple/simple_classifier.js:57:23) at Generator.next () at fulfilled (/Users/aritradas/Downloads/test2/node_modules/llmparser/lib/classifier/classification_techniques/simple/simple_classifier.js:5:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) aritradas@Aritras-MacBook-Air test2 %

pditmar commented 1 year ago

Same problem here. "Invalid classification JSON" error.